MessageQueuePermissionAttribute.Path 속성

정의

큐의 경로를 가져오거나 설정합니다.

public:
 property System::String ^ Path { System::String ^ get(); void set(System::String ^ value); };
public string Path { get; set; }
member this.Path : string with get, set
Public Property Path As String

속성 값

MessageQueue가 참조하는 큐입니다.

예외

값이 null인 경우

예제

다음 코드 예제를 가져오고 메시지 큐 사용 권한 특성의 값을 설정 Path 속성입니다.


// Connect to a queue on the local computer.
MessageQueue^ queue = gcnew MessageQueue(".\\exampleQueue");

// Create a new instance of MessageQueuePermissionAttribute.
MessageQueuePermissionAttribute^ attribute =
    gcnew MessageQueuePermissionAttribute(
    System::Security::Permissions::SecurityAction::Assert);

// Set the attribute's Path property value, based on the queue's Path
// property value.
attribute->Path = queue->Path;

// Display the new value of the attribute's Path property.
Console::WriteLine("attribute->Path: {0}", attribute->Path);

queue->Close();

// Connect to a queue on the local computer.
MessageQueue queue = new MessageQueue(".\\exampleQueue");

// Create a new instance of MessageQueuePermissionAttribute.
MessageQueuePermissionAttribute attribute =
    new MessageQueuePermissionAttribute(
    System.Security.Permissions.SecurityAction.Assert);

// Set the attribute's Path property value, based on the queue's Path
// property value.
attribute.Path = queue.Path;

// Display the new value of the attribute's Path property.
Console.WriteLine("attribute.Path: {0}", attribute.Path);

적용 대상