Partilhar via


SPUserCodeAssemblyGroupId.ISerializable.GetObjectData Method

Adds the user assembly group identifier to the serialized object.

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Private Sub GetObjectData ( _
    info As SerializationInfo, _
    context As StreamingContext _
) Implements ISerializable.GetObjectData
'Usage
Dim instance As SPUserCodeAssemblyGroupId
Dim info As SerializationInfo
Dim context As StreamingContext

CType(instance, ISerializable).GetObjectData(info, _
    context)
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
void ISerializable.GetObjectData(
    SerializationInfo info,
    StreamingContext context
)

Parameters

Implements

ISerializable.GetObjectData(SerializationInfo, StreamingContext)

Exceptions

Exception Condition
ArgumentNullException

info parameter is null .

Remarks

This method adds the user assembly group identifier specified by the GroupId property to the serialized object. The context parameter is not used.

This member is an explicit interface member implementation. It can be used only when the SPUserCodeAssemblyGroupId instance is cast to an ISerializable interface.

See Also

Reference

SPUserCodeAssemblyGroupId Class

SPUserCodeAssemblyGroupId Members

Microsoft.SharePoint.Administration Namespace