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 Function TryGetProperty ( _
    key As Object, _
    <OutAttribute> ByRef value As Object _
) As Boolean
Dim instance As PortalWebSiteMapNode
Dim key As Object
Dim value As Object
Dim returnValue As Boolean

returnValue = instance.TryGetProperty(key, _
public bool TryGetProperty(
    Object key,
    out Object value


  • 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.

See Also


PortalWebSiteMapNode Class

PortalWebSiteMapNode Members

Microsoft.SharePoint.Publishing.Navigation Namespace