Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the property value that is associated with the specified key and assigns the value to a variable of type DateTime.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Function TryGetProperty ( _
key As String, _
<OutAttribute> ByRef value As DateTime _
) As Boolean
'Usage
Dim instance As SPSiteSubscriptionSettings
Dim key As String
Dim value As DateTime
Dim returnValue As Boolean
returnValue = instance.TryGetProperty(key, _
value)
public bool TryGetProperty(
string key,
out DateTime value
)
Parameters
key
Type: System.StringA string that contains the property key corresponding to a value.
value
Type: System.DateTimeA reference to a variable to receive a DateTime value. If key is not found, value is initialized to default(DateTime).
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