Share via


CopyOriginContext.GetCopyOrigin Method

Definition

Overloads

GetCopyOrigin(ElementGroup)

Returns the text that represents the origin of the ElementGroupPrototype, or String.Empty if none exists.

GetCopyOrigin(ElementGroupPrototype)

Returns the text that represents the origin of the ElementGroupPrototype, or String.Empty if not found.

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.

GetCopyOrigin(ElementGroup)

Returns the text that represents the origin of the ElementGroupPrototype, or String.Empty if none exists.

public:
 static System::String ^ GetCopyOrigin(Microsoft::VisualStudio::Modeling::ElementGroup ^ elementGroup);
public static string GetCopyOrigin (Microsoft.VisualStudio.Modeling.ElementGroup elementGroup);
static member GetCopyOrigin : Microsoft.VisualStudio.Modeling.ElementGroup -> string
Public Shared Function GetCopyOrigin (elementGroup As ElementGroup) As String

Parameters

elementGroup
ElementGroup

The ElementGroup where the CopyOriginContext has been saved to.

Returns

The text that represents the origin of the ElementGroupPrototype, or String.Empty if none exists.

Applies to

GetCopyOrigin(ElementGroupPrototype)

Returns the text that represents the origin of the ElementGroupPrototype, or String.Empty if not found.

public:
 static System::String ^ GetCopyOrigin(Microsoft::VisualStudio::Modeling::ElementGroupPrototype ^ elementGroupPrototype);
public static string GetCopyOrigin (Microsoft.VisualStudio.Modeling.ElementGroupPrototype elementGroupPrototype);
static member GetCopyOrigin : Microsoft.VisualStudio.Modeling.ElementGroupPrototype -> string
Public Shared Function GetCopyOrigin (elementGroupPrototype As ElementGroupPrototype) As String

Parameters

elementGroupPrototype
ElementGroupPrototype

The ElementGroupPrototype where the CopyOriginContext has been saved to.

Returns

The text that represents the origin of the ElementGroupPrototype, or String.Empty if not found.

Applies to

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:
 static System::String ^ GetCopyOrigin(Microsoft::VisualStudio::Modeling::Transaction ^ transaction);
public static string GetCopyOrigin (Microsoft.VisualStudio.Modeling.Transaction transaction);
static member GetCopyOrigin : Microsoft.VisualStudio.Modeling.Transaction -> string
Public Shared Function GetCopyOrigin (transaction As Transaction) As String

Parameters

transaction
Transaction

The transaction in which the ElementGroupPrototype's CopyOriginContext was copied.

Returns

The text that represents the origin of the ElementGroupPrototype that is being merged during the specified transaction, or String.Empty if none exists.

Applies to