Share via


SPKeyValuePairSerializationInfo.AddValue Method

Adds the specified value to the SPKeyValuePairSerializationInfo store, where it is associated with a specified name. Associating the value with a name makes it possible to deserialize the value at a later time.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes

Syntax

'Declaration
Public Sub AddValue ( _
    name As String, _
    value As Object _
)
'Usage
Dim instance As SPKeyValuePairSerializationInfo
Dim name As String
Dim value As Object

instance.AddValue(name, value)
public void AddValue(
    string name,
    Object value
)

Parameters

  • name
    Type: System.String

    The name to be associated with the value.

Remarks

If the name parameter is null, an exception of type System.ArgumentNullException is thrown.

See Also

Reference

SPKeyValuePairSerializationInfo Class

SPKeyValuePairSerializationInfo Members

Microsoft.SharePoint.Utilities Namespace