共用方式為


ExplicitHierarchy.IsMandatory 屬性

Gets or sets a value that indicates whether the explicit hierarchy requires child nodes be present.

命名空間:  Microsoft.MasterDataServices.Services.DataContracts
組件:  Microsoft.MasterDataServices.Services.Contracts (在 Microsoft.MasterDataServices.Services.Contracts.dll 中)

語法

'宣告
<DataMemberAttribute(IsRequired := False)> _
Public Property IsMandatory As Boolean 
    Get 
    Set
'用途
Dim instance As ExplicitHierarchy 
Dim value As Boolean 

value = instance.IsMandatory

instance.IsMandatory = value
[DataMemberAttribute(IsRequired = false)]
public bool IsMandatory { get; set; }
[DataMemberAttribute(IsRequired = false)]
public:
property bool IsMandatory {
    bool get ();
    void set (bool value);
}
[<DataMemberAttribute(IsRequired = false)>]
member IsMandatory : bool with get, set
function get IsMandatory () : boolean 
function set IsMandatory (value : boolean)

屬性值

型別:System.Boolean
true if the explicit hierarchy requires child nodes be present; otherwise, false.

請參閱

參考

ExplicitHierarchy 類別

Microsoft.MasterDataServices.Services.DataContracts 命名空間