SecurityRoleAttribute 생성자

정의

SecurityRoleAttribute 클래스의 새 인스턴스를 초기화하고 Role 속성을 설정합니다.

오버로드

SecurityRoleAttribute(String)

SecurityRoleAttribute 클래스의 새 인스턴스를 초기화하고 Role 속성을 설정합니다.

SecurityRoleAttribute(String, Boolean)

SecurityRoleAttribute 클래스의 새 인스턴스를 초기화하고 RoleSetEveryoneAccess 속성을 설정합니다.

SecurityRoleAttribute(String)

SecurityRoleAttribute 클래스의 새 인스턴스를 초기화하고 Role 속성을 설정합니다.

public:
 SecurityRoleAttribute(System::String ^ role);
public SecurityRoleAttribute (string role);
new System.EnterpriseServices.SecurityRoleAttribute : string -> System.EnterpriseServices.SecurityRoleAttribute
Public Sub New (role As String)

매개 변수

role
String

애플리케이션, 구성 요소, 인터페이스 또는 메서드의 보안 역할입니다.

예제

다음 코드 예제에는 역할을 포함 하는 어셈블리를 사용 하 여 연결 하려면이 특성의 사용 방법을 보여 줍니다. ServicedComponent 클래스입니다.

// Create a security role for the component.
[assembly:SecurityRole("Manager")];
// Create a security role for the component.
[assembly: SecurityRole("Manager")]
' Create a security role for the component.
<Assembly: SecurityRole("Manager")>

적용 대상

SecurityRoleAttribute(String, Boolean)

SecurityRoleAttribute 클래스의 새 인스턴스를 초기화하고 RoleSetEveryoneAccess 속성을 설정합니다.

public:
 SecurityRoleAttribute(System::String ^ role, bool everyone);
public SecurityRoleAttribute (string role, bool everyone);
new System.EnterpriseServices.SecurityRoleAttribute : string * bool -> System.EnterpriseServices.SecurityRoleAttribute
Public Sub New (role As String, everyone As Boolean)

매개 변수

role
String

애플리케이션, 구성 요소, 인터페이스 또는 메서드의 보안 역할입니다.

everyone
Boolean

새로 만든 역할에 Everyone 사용자 그룹을 사용자로 추가하려면 true이고, 그렇지 않으면 false입니다.

적용 대상