共用方式為


RequiresRoleAttribute 成員

指定一組允許叫用 DomainOperationEntry 的角色。

下表列出 RequiresRoleAttribute 型別公開的成員。

公用 建構函式

  名稱 說明
  RequiresRoleAttribute 多載。 初始化 RequiresRoleAttribute 類別的新執行個體。

頂端

公用 屬性

  名稱 說明
public property ErrorMessage  取得或設定預定要在 ErrorMessage 中傳回的常值錯誤訊息或資源索引鍵。 (繼承自 AuthorizationAttribute)
public property ResourceType  取得或設定 Type 來當做 ErrorMessage 的資源管理員使用。 (繼承自 AuthorizationAttribute)
public property Roles 取得允許叫用作業的角色。
public property TypeId 覆寫。 取得這個屬性的唯一識別項。

頂端

公用 方法

(另請參閱 受保護的 方法)

  名稱 說明
public method Authorize  (繼承自 AuthorizationAttribute)
public method Equals  多載。 (繼承自 Attribute)
public methodstatic GetCustomAttribute  多載。 (繼承自 Attribute)
public methodstatic GetCustomAttributes  多載。 (繼承自 Attribute)
public method GetHashCode  (繼承自 Attribute)
public method GetType  (繼承自 Object)
public method IsDefaultAttribute  (繼承自 Attribute)
public methodstatic IsDefined  多載。 (繼承自 Attribute)
public method Match  (繼承自 Attribute)
public methodstatic ReferenceEquals  (繼承自 Object)
public method ToString  (繼承自 Object)

頂端

受保護的 方法

  名稱 說明
protected method Finalize  (繼承自 Object)
protected method FormatErrorMessage  (繼承自 AuthorizationAttribute)
protected method IsAuthorized  (繼承自 AuthorizationAttribute)
protected method MemberwiseClone  (繼承自 Object)

頂端

明確介面實作

  名稱 說明
  System.Runtime.InteropServices._Attribute.GetIDsOfNames  (繼承自 Attribute)
  System.Runtime.InteropServices._Attribute.GetTypeInfo  (繼承自 Attribute)
  System.Runtime.InteropServices._Attribute.GetTypeInfoCount  (繼承自 Attribute)
  System.Runtime.InteropServices._Attribute.Invoke  (繼承自 Attribute)

頂端

另請參閱

參考

RequiresRoleAttribute 類別
System.ServiceModel.DomainServices.Server 命名空間