次の方法で共有


ImmutabilityExtensionMethods.IsLocked Method (Partition, Locks)

Test whether this partition has any of a specified set of locks

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

Syntax

'宣言
<ExtensionAttribute> _
Public Shared Function IsLocked ( _
    partition As Partition, _
    locks As Locks _
) As Boolean
public static bool IsLocked(
    this Partition partition,
    Locks locks
)
[ExtensionAttribute]
public:
static bool IsLocked(
    Partition^ partition, 
    Locks locks
)
static member IsLocked : 
        partition:Partition * 
        locks:Locks -> bool 
public static function IsLocked(
    partition : Partition, 
    locks : Locks
) : boolean

Parameters

Return Value

Type: System.Boolean

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Partition. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

.NET Framework Security

See Also

Reference

ImmutabilityExtensionMethods Class

IsLocked Overload

Microsoft.VisualStudio.Modeling.Immutability Namespace