Share via


SPSiteSubscriptionPropertyCollection.SetValue Method (String, Int32)

Sets an Int32 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)
Available in Sandboxed Solutions: No

Syntax

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

instance.SetValue(key, value)
public void SetValue(
    string key,
    int 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, Int32)