SPSiteSubscriptionPropertyCollection.SetValue method (String, DateTime)

Sets a DateTime property value that is associated with a specified key, and if the specified key does not exist, adds a new element with the key.

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

Syntax

'Declaration
Public Sub SetValue ( _
    key As String, _
    value As DateTime _
)
'Usage
Dim instance As SPSiteSubscriptionPropertyCollection
Dim key As String
Dim value As DateTime

instance.SetValue(key, value)
public void SetValue(
    string key,
    DateTime value
)

Parameters

  • key
    Type: System.String

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

See also

Reference

SPSiteSubscriptionPropertyCollection class

SPSiteSubscriptionPropertyCollection members

SetValue overload

Microsoft.SharePoint namespace

TryGetProperty(String, DateTime)