PortalWebSiteMapNode.TryGetProperty method

Retrieves a value from the Web site property bag by using a specified object key, and returns a Boolean value that represents whether the key was found.

Namespace:  Microsoft.SharePoint.Publishing.Navigation
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

public bool TryGetProperty(
	Object key,
	out Object value
)

Parameters

key
Type: System.Object

The key to use to access the property bag.

value
Type: System.Object

An out parameter that is assigned the value that corresponds to the specified key, if the key is found.

Return value

Type: System.Boolean
true if the key was found; otherwise, false.
Show: