Share via


CopyOriginContext.HasContext Method

Definition

Overloads

HasContext(ElementGroupPrototype)

Returns true if the elementGroupPrototype's SourceContext has a CopyOriginContext.

HasContext(Transaction)

Returns true if the transaction's ContextInfo has a CopyOriginContext.

HasContext(ElementGroupPrototype)

Returns true if the elementGroupPrototype's SourceContext has a CopyOriginContext.

public:
 static bool HasContext(Microsoft::VisualStudio::Modeling::ElementGroupPrototype ^ elementGroupPrototype);
public static bool HasContext (Microsoft.VisualStudio.Modeling.ElementGroupPrototype elementGroupPrototype);
static member HasContext : Microsoft.VisualStudio.Modeling.ElementGroupPrototype -> bool
Public Shared Function HasContext (elementGroupPrototype As ElementGroupPrototype) As Boolean

Parameters

elementGroupPrototype
ElementGroupPrototype

The elementGroupPrototype to inspect.

Returns

True if the elementGroupPrototype's SourceContext has a CopyOriginContext.

Applies to

HasContext(Transaction)

Returns true if the transaction's ContextInfo has a CopyOriginContext.

public:
 static bool HasContext(Microsoft::VisualStudio::Modeling::Transaction ^ transaction);
public static bool HasContext (Microsoft.VisualStudio.Modeling.Transaction transaction);
static member HasContext : Microsoft.VisualStudio.Modeling.Transaction -> bool
Public Shared Function HasContext (transaction As Transaction) As Boolean

Parameters

transaction
Transaction

The transaction to inspect.

Returns

True if the transaction's ContextInfo has a CopyOriginContext.

Applies to