CopyOriginContext.HasContext 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 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。
返回
如果 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
要检查的事务。
返回
如果事务的 ContextInfo 具有 CopyOriginContext,则为 True。