ContentType Property

The content type of the outgoing message.

Syntax

ANSI (Cross Platform)
char* GetContentType();
int SetContentType(const char* lpszContentType); Unicode (Windows) LPWSTR GetContentType();
INT SetContentType(LPCWSTR lpszContentType);
@property (nonatomic,readwrite,assign,getter=contentType,setter=setContentType:) NSString* contentType;
- (NSString*)contentType;
- (void)setContentType:(NSString*)newContentType;
#define PID_STOMP_CONTENTTYPE 2

IPWORKSMQ_EXTERNAL void* IPWORKSMQ_CALL IPWorksMQ_STOMP_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSMQ_EXTERNAL int IPWORKSMQ_CALL IPWorksMQ_STOMP_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

"text/plain"

Remarks

This property is used to specify the content type (MIME type) for outgoing messages sent using SendMessage. The default value is text/plain, which should be sufficient is most cases.

Note that this property is ignored for messages sent using SendData, as such messages do not have a content-type header added to them. The absence of a content-type header indicates to the server that the data should be treated as a binary blob.

This property is not available at design time.

Data Type

String

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks MQ 2020 C++ Edition - Version 20.0 [Build 8155]