[This is preliminary documentation and is subject to change.]

Gets the value of the element specified by xpath.

Namespace:  Facebook.Api
Assembly:  Facebook (in Facebook.dll) Version: 0.2009.3.23 (0.2009.3.23)

Syntax

C#
public static T GetFacebookObject<T>(
	this IFacebookObject obj,
	string xpath
)
where T : new(), FacebookObjectBase
Visual Basic (Declaration)
<ExtensionAttribute> _
Public Shared Function GetFacebookObject(Of T As {New, FacebookObjectBase}) ( _
	obj As IFacebookObject, _
	xpath As String _
) As T
Visual C++
[ExtensionAttribute]
public:
generic<typename T>
where T : gcnew(), FacebookObjectBase
static T GetFacebookObject(
	IFacebookObject^ obj, 
	String^ xpath
)

Parameters

obj
Type: Facebook.Api..::.IFacebookObject
A reference to the current IFacebookObject instance.
xpath
Type: System..::.String
A relative XPath query to the desired element.

Type Parameters

T
The type of value to return.

Return Value

A T object representation of the value of the specified element and its children.

See Also

FacebookObjectExtensions Class
Facebook.Api Namespace