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)

Syntax

'Declaration
Public Function TryGetProperty ( _
    key As Object, _
    <OutAttribute> ByRef value As Object _
) As Boolean
'Usage
Dim instance As PortalWebSiteMapNode
Dim key As Object
Dim value As Object
Dim returnValue As Boolean

returnValue = instance.TryGetProperty(key, _
    value)
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.

See also

Reference

PortalWebSiteMapNode class

PortalWebSiteMapNode members

Microsoft.SharePoint.Publishing.Navigation namespace

AllProperties

PortalWebSiteMapNode