New-MsmqMessage

New-MsmqMessage

Creates a message object.

구문

Parameter Set: Default
New-MsmqMessage [[-Body] <Object> ] [-AdminQueuePath <String> ] [-Authenticated] [-Journaling] [-Label <String> ] [-Recoverable] [-ResponseQueuePath <String> ] [-TimeToBeReceived <TimeSpan> ] [-TimeToReachQueue <TimeSpan> ] [ <CommonParameters>]

자세한 설명

The New-MsmqMessage cmdlet creates a System.Messaging.Message object that includes properties specified by parameters.

매개 변수

-AdminQueuePath<String>

Specifies a path. The queue that the path specifies receives the acknowledgement messages that Message Queuing generates. The default value is an empty string.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-Authenticated

Indicates that the cmdlet sends the message as an authenticated message.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-Body<Object>

Specifies the body of the message. The default value is an empty body.

별칭

없음

필수 여부

false

위치

1

기본값

없음

파이프라인 입력 적용 여부

true (ByValue)

와일드카드 문자 허용 여부

false

-Journaling

Indicates that the originating computer keeps a copy of the message in a journal.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-Label<String>

Specifies a label. The label that this parameter specifies describes the message. The default value is an empty string.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-Recoverable

Indicates that the cmdlet sets the recoverable property of a message object.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-ResponseQueuePath<String>

Specifies a path. The queue that this parameter specifies receives application-generated response messages. The default value is an empty string.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-TimeToBeReceived<TimeSpan>

Specifies the maximum amount of time, in milliseconds, for the message to be received from the destination queue. The default value is 49.17:02:47.295.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-TimeToReachQueue<TimeSpan>

Specifies the maximum amount of time, in milliseconds, for the message to reach the queue. The default value is 49.17:02:47.295.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216).

입력

입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.

출력

출력 유형은 cmdlet이 내보내는 개체의 유형입니다.

예제

Example 1

PS C:\> New-MsmqMessage -Body "Test Message" -AdminQueue ".\private$\adminqueue" -Recoverable 

관련 항목

Move-MsmqMessage