AttributeTableValidationException.GetObjectData 方法

[本文档仅供预览,在以后的发行版中可能会发生更改。包含的空白主题用作占位符。]

此成员重写 Exception.GetObjectData(SerializationInfo, StreamingContext),且该主题可能包括更完整的文档。

重写用于执行序列化的异常类型的 GetObjectData

命名空间:  Microsoft.Windows.Design.Metadata
程序集:  Microsoft.Windows.Design.Extensibility(在 Microsoft.Windows.Design.Extensibility.dll 中)

语法

声明
<SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags := SecurityPermissionFlag.SerializationFormatter)> _
Public Overrides Sub GetObjectData ( _
    info As SerializationInfo, _
    context As StreamingContext _
)
[SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)]
public override void GetObjectData(
    SerializationInfo info,
    StreamingContext context
)
[SecurityPermissionAttribute(SecurityAction::LinkDemand, Flags = SecurityPermissionFlag::SerializationFormatter)]
public:
virtual void GetObjectData(
    SerializationInfo^ info, 
    StreamingContext context
) override
[<SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)>]
abstract GetObjectData : 
        info:SerializationInfo * 
        context:StreamingContext -> unit 
[<SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)>]
override GetObjectData : 
        info:SerializationInfo * 
        context:StreamingContext -> unit 
public override function GetObjectData(
    info : SerializationInfo, 
    context : StreamingContext
)

参数

实现

ISerializable.GetObjectData(SerializationInfo, StreamingContext)
_Exception.GetObjectData(SerializationInfo, StreamingContext)

.NET Framework 安全性

请参见

参考

AttributeTableValidationException 类

Microsoft.Windows.Design.Metadata 命名空间

AttributeTable

AttributeTableBuilder

其他资源

了解 WPF 设计器扩展性