다음을 통해 공유


SPFieldLookupValueCollection.GetObjectData Method

Populates a SerializationInfo object with the data needed to serialize the SPFieldLookupValueCollection object.

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

Syntax

'Declaration
<SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter := True)> _
Public Overridable Sub GetObjectData ( _
    info As SerializationInfo, _
    context As StreamingContext _
)
'Usage
Dim instance As SPFieldLookupValueCollection
Dim info As SerializationInfo
Dim context As StreamingContext

instance.GetObjectData(info, context)
[SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter = true)]
public virtual void GetObjectData(
    SerializationInfo info,
    StreamingContext context
)

Parameters

Implements

ISerializable.GetObjectData(SerializationInfo, StreamingContext)

Remarks

This method adds the values of the lookup field for serialization. During deserialization, the collection is reconstituted from info.

See Also

Reference

SPFieldLookupValueCollection Class

SPFieldLookupValueCollection Members

Microsoft.SharePoint Namespace