CopyOriginContext.HasContext Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.