SPSiteSubscriptionSettings.TryGetProperty method (String, Guid)

Returns the property value that is associated with the specified key and assigns the value to a variable of type Guid.

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

Syntax

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

returnValue = instance.TryGetProperty(key, _
    value)
public bool TryGetProperty(
    string key,
    out Guid value
)

Parameters

  • key
    Type: System.String

    A string that contains the property key corresponding to a value.

  • value
    Type: System.Guid

    A reference to a variable to receive a Guid value. If key is not found, value is initialized to default(Guid).

Return value

Type: System.Boolean
true if the specified key is found; otherwise, false.

Exceptions

Exception Condition
InvalidCastException

The stored type and the requested type are not compatible.

See also

Reference

SPSiteSubscriptionSettings class

SPSiteSubscriptionSettings members

TryGetProperty overload

Microsoft.SharePoint namespace

SetValue(String, Guid)