TextFormattingRunProperties.GetObjectData Method
Serializes the TextFormattingRunProperties object using a XamlWriter.
Namespace: Microsoft.VisualStudio.Text.Formatting
Assembly: Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)
Syntax
声明
<SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter := True)> _
Public Sub GetObjectData ( _
info As SerializationInfo, _
context As StreamingContext _
)
[SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter = true)]
public void GetObjectData(
SerializationInfo info,
StreamingContext context
)
[SecurityPermissionAttribute(SecurityAction::Demand, SerializationFormatter = true)]
public:
virtual void GetObjectData(
SerializationInfo^ info,
StreamingContext context
) sealed
[<SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter = true)>]
abstract GetObjectData :
info:SerializationInfo *
context:StreamingContext -> unit
[<SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter = true)>]
override GetObjectData :
info:SerializationInfo *
context:StreamingContext -> unit
public final function GetObjectData(
info : SerializationInfo,
context : StreamingContext
)
Parameters
- info
Type: System.Runtime.Serialization.SerializationInfo
The SerializationInfo used for serialization.
- context
Type: System.Runtime.Serialization.StreamingContext
The serialization context.
Implements
ISerializable.GetObjectData(SerializationInfo, StreamingContext)
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | info is nulla null reference (Nothing in Visual Basic). |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.