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 or not 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
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
Boolean value that represents whether or not the lookup was successful.