CopyOriginContext.HasContext 方法

定义

重载

HasContext(ElementGroupPrototype)

如果 Elementgroupprototype 创建 elementgroup 的 SourceContext 具有 CopyOriginContext,则返回 true。

HasContext(Transaction)

如果事务的 ContextInfo 具有 CopyOriginContext,则返回 true。

HasContext(ElementGroupPrototype)

如果 Elementgroupprototype 创建 elementgroup 的 SourceContext 具有 CopyOriginContext,则返回 true。

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

参数

elementGroupPrototype
ElementGroupPrototype

要检查的 Elementgroupprototype 创建 elementgroup。

返回

Boolean

如果 Elementgroupprototype 创建 elementgroup 的 SourceContext 具有 CopyOriginContext,则为 True。

适用于

HasContext(Transaction)

如果事务的 ContextInfo 具有 CopyOriginContext,则返回 true。

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

参数

transaction
Transaction

要检查的事务。

返回

Boolean

如果事务的 ContextInfo 具有 CopyOriginContext,则为 True。

适用于