共用方式為


DesignSurfaceMergeContext.HasContext Method

Returns true if the transaction contains DesignSurfaceMergeContext info, otherwise false.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)

Syntax

'宣告
Public Shared Function HasContext ( _
    transaction As Transaction _
) As Boolean
public static bool HasContext(
    Transaction transaction
)
public:
static bool HasContext(
    Transaction^ transaction
)
static member HasContext : 
        transaction:Transaction -> bool 
public static function HasContext(
    transaction : Transaction
) : boolean

Parameters

Return Value

Type: System.Boolean

.NET Framework Security

See Also

Reference

DesignSurfaceMergeContext Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace