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)

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