Share via


DomainRoleInfo.IsOptional Property

Gets the domain role and verifies whether the multiplicity allows zero objects. If it does allow zero objects, this makes it optional.

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

Syntax

'Declaration
Public ReadOnly Property IsOptional As Boolean
'Usage
Dim instance As DomainRoleInfo 
Dim value As Boolean 

value = instance.IsOptional
public bool IsOptional { get; }
public:
property bool IsOptional {
    bool get ();
}
public function get IsOptional () : boolean

Property Value

Type: System.Boolean
true if the zero objects is allowed; otherwise, false.

Remarks

Returns true if the multiplicity is either 0..1 or 0..*.

.NET Framework Security

See Also

Reference

DomainRoleInfo Class

DomainRoleInfo Members

Microsoft.VisualStudio.Modeling Namespace