CodeGenerationUtilities.AllowMultiple Method
Gets if the given role allows multiple instances, based on its Multiplicity.
Namespace: Microsoft.VisualStudio.Modeling.DslDefinition
Assembly: Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0.dll)
Syntax
'宣告
Public Shared Function AllowMultiple ( _
role As DomainRole _
) As Boolean
public static bool AllowMultiple(
DomainRole role
)
public:
static bool AllowMultiple(
DomainRole^ role
)
static member AllowMultiple :
role:DomainRole -> bool
public static function AllowMultiple(
role : DomainRole
) : boolean
Parameters
- role
Type: Microsoft.VisualStudio.Modeling.DslDefinition.DomainRole
DomainRole to check.
Return Value
Type: System.Boolean
True if the role allows multiple, false otherwise.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.