CopyOriginContext 类

提供有关 ElementGroupPrototype 的原点的信息。

继承层次结构

System.Object
  Microsoft.VisualStudio.Modeling.CopyOriginContext

命名空间:  Microsoft.VisualStudio.Modeling
程序集:  Microsoft.VisualStudio.Modeling.Sdk.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)

语法

声明
<SerializableAttribute> _
Public Class CopyOriginContext _
    Implements ISerializable
[SerializableAttribute]
public class CopyOriginContext : ISerializable

CopyOriginContext 类型公开以下成员。

构造函数

  名称 说明
受保护的方法 CopyOriginContext 初始化 CopyOriginContext 类的新实例。这用于反序列化。

页首

方法

  名称 说明
公共方法 Equals 确定指定的对象是否等于当前对象。 (继承自 Object。)
受保护的方法 Finalize 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法静态成员 GetCopyOrigin(ElementGroup) 返回表示 ElementGroupPrototype 源或 String 的文本,如果不存在则为空。
公共方法静态成员 GetCopyOrigin(ElementGroupPrototype) 返回表示 ElementGroupPrototype 源或 String 的文本,如果未找到则为空。
公共方法静态成员 GetCopyOrigin(Transaction) 返回表示 ElementGroupPrototype 源在指定的事务时合并或 String 的文本,如果不存在则为空。
公共方法 GetHashCode 作为默认哈希函数。 (继承自 Object。)
公共方法 GetObjectData 使用序列化此对象所需的数据填充 SerializationInfo。
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法静态成员 HasContext(ElementGroupPrototype) 如果 elementGroupPrototype 的 SourceContext 具有 CopyOriginContext 则返回 true。
公共方法静态成员 HasContext(Transaction) 如果事务的 ContextInfo 具有 CopyOriginContext,则返回 true。
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法静态成员 Set 添加 ElementGroupPrototype 源信息到 ElementGroupPrototype。
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.VisualStudio.Modeling 命名空间