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.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0.dll)
Syntax
'Declaration
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.DomainRoleDomainRole 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.