_XDocument3.Role 屬性
取得或設定使用者目前的角色。
**命名空間:**Microsoft.Office.Interop.InfoPath
**組件:**Microsoft.Office.Interop.InfoPath (於 microsoft.office.interop.infopath.dll 中)
語法
'宣告
<DispIdAttribute(41)> _
Property Role As String
'用途
Dim instance As _XDocument3
Dim value As String
value = instance.Role
instance.Role = value
[DispIdAttribute(41)]
string Role { get; set; }
屬性值
使用者目前的角色。
範例
在下列範例中,Role 屬性是用於判斷目前的使用者角色。
string currentRole = thisXDocument.Role;
請參閱
參考
_XDocument3 介面
_XDocument3 成員
Microsoft.Office.Interop.InfoPath 命名空間