次の方法で共有


CopyOriginContext Class

Provides information about the origin of the ElementGroupPrototype.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Modeling.CopyOriginContext

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

'宣言
<SerializableAttribute> _
Public Class CopyOriginContext _
    Implements ISerializable
[SerializableAttribute]
public class CopyOriginContext : ISerializable
[SerializableAttribute]
public ref class CopyOriginContext : ISerializable
[<SerializableAttribute>]
type CopyOriginContext =  
    class
        interface ISerializable
    end
public class CopyOriginContext implements ISerializable

The CopyOriginContext type exposes the following members.

Constructors

  Name Description
Protected method CopyOriginContext Initializes a new instance of the CopyOriginContext class. This is used for deserialization.

Top

Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodStatic member GetCopyOrigin(ElementGroup) Returns the text that represents the origin of the ElementGroupPrototype, or String.Empty if none exists.
Public methodStatic member GetCopyOrigin(ElementGroupPrototype) Returns the text that represents the origin of the ElementGroupPrototype, or String.Empty if not found.
Public methodStatic member GetCopyOrigin(Transaction) Returns the text that represents the origin of the ElementGroupPrototype that is being merged during the specified transaction, or String.Empty if none exists.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetObjectData Populates a SerializationInfo with the data needed to serialize this object.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public methodStatic member HasContext(ElementGroupPrototype) Returns true if the elementGroupPrototype's SourceContext has a CopyOriginContext.
Public methodStatic member HasContext(Transaction) Returns true if the transaction's ContextInfo has a CopyOriginContext.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic member Set Adds the ElementGroupPrototype origin information to the ElementGroupPrototype.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Modeling Namespace