Google Integrator V2 - Online Help
Google Integrator V2
Questions / Feedback?

GetProperty Method

Get the value of a specific Google Data feed element or attribute.

Syntax

[VB.NET]
Public Function GetProperty(ByVal PropertyName As String) As String
[C#]
public string GetProperty(string propertyName);

Remarks

This method is intended for extending functionality of the GData component. It will get the value for a specific entry element or attribute of this GData feed. PropertyName is the XPath of the element or attribute according to the following convention: /feed/element@attribute or entry[x]/element@attribute. The @attribute part is optional. When EntryIndex is set to an index greater than zero, a relative path can also be used: /element or /element@attribute. When a relative path is specified, the value of the specified PropertyName will be returned for the entry identified by EntryIndex.

entry[x] is the feed's xth entry (or any other root level child), where the indexer x starts at 1.

element is any child of the feed or an entry, and attribute can be any attribute of that field. If an attribute is not supplied, the GetProperty method will return the text portion of element. For example:


  GDataControl.GetProperty("entry[5]/link@href")
  GDataControl.GetProperty("entry[5]/author/name")
  GDataControl.GetProperty("/feed/title")

Here is an example using a relative path to retrieve properties of the first feed entry:

	GDataControl.EntryIndex = 1
	GDataControl.GetProperty("id")
	GDataControl.GetProperty("link@href")
	GDataControl.GetProperty("gd:name/gd:fullName")

 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
Build 2.0.6240.0