2 writes to properties
System.Messaging (2)
System\Messaging\Message.cs (2)
70properties = new MessagePropertyVariants(); 108properties = new MessagePropertyVariants();
285 references to properties
System.Messaging (285)
System\Messaging\ActiveXMessageFormatter.cs (21)
124bytes = message.properties.GetUI1Vector(NativeMethods.MESSAGE_PROPID_BODY); 125size = message.properties.GetUI4(NativeMethods.MESSAGE_PROPID_BODY_SIZE); 137bytes = message.properties.GetUI1Vector(NativeMethods.MESSAGE_PROPID_BODY); 138size = message.properties.GetUI4(NativeMethods.MESSAGE_PROPID_BODY_SIZE) / 2; 149bytes = message.properties.GetUI1Vector(NativeMethods.MESSAGE_PROPID_BODY); 150size = message.properties.GetUI4(NativeMethods.MESSAGE_PROPID_BODY_SIZE); 156bytes = message.properties.GetUI1Vector(NativeMethods.MESSAGE_PROPID_BODY); 164bytes = message.properties.GetUI1Vector(NativeMethods.MESSAGE_PROPID_BODY); 169bytes = message.properties.GetUI1Vector(NativeMethods.MESSAGE_PROPID_BODY); 174bytes = message.properties.GetUI1Vector(NativeMethods.MESSAGE_PROPID_BODY); 259message.properties.SetUI1Vector(NativeMethods.MESSAGE_PROPID_BODY, this.internalBuffer); 260message.properties.AdjustSize(NativeMethods.MESSAGE_PROPID_BODY, size); 261message.properties.SetUI4(NativeMethods.MESSAGE_PROPID_BODY_SIZE, size); 262message.properties.SetUI4(NativeMethods.MESSAGE_PROPID_BODY_TYPE, VT_LPWSTR); 272message.properties.SetUI1Vector(NativeMethods.MESSAGE_PROPID_BODY, this.internalBuffer); 273message.properties.AdjustSize(NativeMethods.MESSAGE_PROPID_BODY, bytes.Length); 274message.properties.SetUI4(NativeMethods.MESSAGE_PROPID_BODY_SIZE, bytes.Length); 275message.properties.SetUI4(NativeMethods.MESSAGE_PROPID_BODY_TYPE, VT_UI1 | VT_VECTOR); 289message.properties.SetUI1Vector(NativeMethods.MESSAGE_PROPID_BODY, this.internalBuffer); 290message.properties.SetUI4(NativeMethods.MESSAGE_PROPID_BODY_SIZE, size); 291message.properties.SetUI4(NativeMethods.MESSAGE_PROPID_BODY_TYPE, VT_LPWSTR);
System\Messaging\Message.cs (264)
75properties.SetUI1Vector(NativeMethods.MESSAGE_PROPID_MSGID, new byte[MessageIdSize]); 116properties.SetUI2(NativeMethods.MESSAGE_PROPID_CLASS, (short)0); 119properties.SetUI1(NativeMethods.MESSAGE_PROPID_ACKNOWLEDGE, (byte)0); 123properties.SetString(NativeMethods.MESSAGE_PROPID_ADMIN_QUEUE, new byte[DefaultQueueNameSize * 2]); 124properties.SetUI4(NativeMethods.MESSAGE_PROPID_ADMIN_QUEUE_LEN, DefaultQueueNameSize); 128properties.SetUI1Vector(NativeMethods.MESSAGE_PROPID_BODY, new byte[filter.bodySize]); 129properties.SetUI4(NativeMethods.MESSAGE_PROPID_BODY_SIZE, filter.bodySize); 130properties.SetUI4(NativeMethods.MESSAGE_PROPID_BODY_TYPE, 0); 134properties.SetString(NativeMethods.MESSAGE_PROPID_LABEL, new byte[filter.labelSize * 2]); 135properties.SetUI4(NativeMethods.MESSAGE_PROPID_LABEL_LEN, filter.labelSize); 138properties.SetUI1Vector(NativeMethods.MESSAGE_PROPID_MSGID, new byte[MessageIdSize]); 141properties.SetUI8(NativeMethods.MESSAGE_PROPID_LOOKUPID, (long)0); 144properties.SetUI1(NativeMethods.MESSAGE_PROPID_JOURNAL, (byte)0); 148properties.SetString(NativeMethods.MESSAGE_PROPID_RESP_QUEUE, new byte[DefaultQueueNameSize * 2]); 149properties.SetUI4(NativeMethods.MESSAGE_PROPID_RESP_QUEUE_LEN, DefaultQueueNameSize); 153properties.SetUI2(NativeMethods.MESSAGE_PROPID_CLASS, (short)0); 157properties.SetUI1(NativeMethods.MESSAGE_PROPID_JOURNAL, (byte)0); 164properties.SetUI4(NativeMethods.MESSAGE_PROPID_APPSPECIFIC, 0); 166properties.SetUI4(NativeMethods.MESSAGE_PROPID_ARRIVEDTIME, 0); 168properties.SetUI4(NativeMethods.MESSAGE_PROPID_SENDERID_TYPE, 0); 170properties.SetUI1(NativeMethods.MESSAGE_PROPID_AUTHENTICATED, (byte)0); 173properties.SetGuid(NativeMethods.MESSAGE_PROPID_CONNECTOR_TYPE, new byte[GenericIdSize]); 175properties.SetUI1Vector(NativeMethods.MESSAGE_PROPID_CORRELATIONID, new byte[MessageIdSize]); 178properties.SetString(NativeMethods.MESSAGE_PROPID_PROV_NAME, new byte[DefaultCryptographicProviderNameSize * 2]); 179properties.SetUI4(NativeMethods.MESSAGE_PROPID_PROV_NAME_LEN, DefaultCryptographicProviderNameSize); 182properties.SetUI4(NativeMethods.MESSAGE_PROPID_PROV_TYPE, 0); 184properties.SetUI1(NativeMethods.MESSAGE_PROPID_DELIVERY, (byte)0); 187properties.SetString(NativeMethods.MESSAGE_PROPID_DEST_QUEUE, new byte[DefaultQueueNameSize * 2]); 188properties.SetUI4(NativeMethods.MESSAGE_PROPID_DEST_QUEUE_LEN, DefaultQueueNameSize); 192properties.SetUI1Vector(NativeMethods.MESSAGE_PROPID_SIGNATURE, new byte[DefaultDigitalSignatureSize]); 193properties.SetUI4(NativeMethods.MESSAGE_PROPID_SIGNATURE_LEN, DefaultDigitalSignatureSize); 196properties.SetUI4(NativeMethods.MESSAGE_PROPID_ENCRYPTION_ALG, 0); 199properties.SetUI1Vector(NativeMethods.MESSAGE_PROPID_EXTENSION, new byte[filter.extensionSize]); 200properties.SetUI4(NativeMethods.MESSAGE_PROPID_EXTENSION_LEN, filter.extensionSize); 204properties.SetString(NativeMethods.MESSAGE_PROPID_XACT_STATUS_QUEUE, new byte[DefaultQueueNameSize * 2]); 205properties.SetUI4(NativeMethods.MESSAGE_PROPID_XACT_STATUS_QUEUE_LEN, DefaultQueueNameSize); 208properties.SetUI4(NativeMethods.MESSAGE_PROPID_HASH_ALG, 0); 210properties.SetUI1(NativeMethods.MESSAGE_PROPID_FIRST_IN_XACT, (byte)0); 212properties.SetUI1(NativeMethods.MESSAGE_PROPID_LAST_IN_XACT, (byte)0); 214properties.SetUI1(NativeMethods.MESSAGE_PROPID_PRIORITY, (byte)0); 217properties.SetUI1Vector(NativeMethods.MESSAGE_PROPID_SENDER_CERT, new byte[DefaultSenderCertificateSize]); 218properties.SetUI4(NativeMethods.MESSAGE_PROPID_SENDER_CERT_LEN, DefaultSenderCertificateSize); 222properties.SetUI1Vector(NativeMethods.MESSAGE_PROPID_SENDERID, new byte[DefaultSenderIdSize]); 223properties.SetUI4(NativeMethods.MESSAGE_PROPID_SENDERID_LEN, DefaultSenderIdSize); 226properties.SetUI4(NativeMethods.MESSAGE_PROPID_SENTTIME, 0); 228properties.SetGuid(NativeMethods.MESSAGE_PROPID_SRC_MACHINE_ID, new byte[GenericIdSize]); 231properties.SetUI1Vector(NativeMethods.MESSAGE_PROPID_DEST_SYMM_KEY, new byte[DefaultSymmetricKeySize]); 232properties.SetUI4(NativeMethods.MESSAGE_PROPID_DEST_SYMM_KEY_LEN, DefaultSymmetricKeySize); 235properties.SetUI4(NativeMethods.MESSAGE_PROPID_TIME_TO_BE_RECEIVED, 0); 237properties.SetUI4(NativeMethods.MESSAGE_PROPID_TIME_TO_REACH_QUEUE, 0); 239properties.SetUI1Vector(NativeMethods.MESSAGE_PROPID_XACTID, new byte[MessageIdSize]); 241properties.SetUI4(NativeMethods.MESSAGE_PROPID_AUTH_LEVEL, 0); 243properties.SetUI4(NativeMethods.MESSAGE_PROPID_PRIV_LEVEL, 0); 245properties.SetUI1(NativeMethods.MESSAGE_PROPID_TRACE, (byte)0); 247properties.SetUI4(NativeMethods.MESSAGE_PROPID_VERSION, 0); 271int res = ((int)properties.GetUI2(NativeMethods.MESSAGE_PROPID_CLASS)) & 0x0000FFFF; 299return (AcknowledgeTypes)this.properties.GetUI1(NativeMethods.MESSAGE_PROPID_ACKNOWLEDGE); 308properties.Remove(NativeMethods.MESSAGE_PROPID_ACKNOWLEDGE); 313this.properties.SetUI1(NativeMethods.MESSAGE_PROPID_ACKNOWLEDGE, (byte)value); 341if (properties.GetUI4(NativeMethods.MESSAGE_PROPID_ADMIN_QUEUE_LEN) != 0) 343string queueFormatName = StringFromBytes(properties.GetString(NativeMethods.MESSAGE_PROPID_ADMIN_QUEUE), 344properties.GetUI4(NativeMethods.MESSAGE_PROPID_ADMIN_QUEUE_LEN)); 363properties.Remove(NativeMethods.MESSAGE_PROPID_ADMIN_QUEUE); 364properties.Remove(NativeMethods.MESSAGE_PROPID_ADMIN_QUEUE_LEN); 393return properties.GetUI4(NativeMethods.MESSAGE_PROPID_APPSPECIFIC); 402properties.Remove(NativeMethods.MESSAGE_PROPID_APPSPECIFIC); 407properties.SetUI4(NativeMethods.MESSAGE_PROPID_APPSPECIFIC, value); 432time = time.AddSeconds(properties.GetUI4(NativeMethods.MESSAGE_PROPID_ARRIVEDTIME)).ToLocalTime(); 458int type = properties.GetUI4(NativeMethods.MESSAGE_PROPID_SENDERID_TYPE); 471properties.Remove(NativeMethods.MESSAGE_PROPID_SENDERID_TYPE); 477properties.SetUI4(NativeMethods.MESSAGE_PROPID_SENDERID_TYPE, NativeMethods.MESSAGE_SENDERID_TYPE_SID); 479properties.SetUI4(NativeMethods.MESSAGE_PROPID_SENDERID_TYPE, NativeMethods.MESSAGE_SENDERID_TYPE_NONE); 505return (properties.GetUI1(NativeMethods.MESSAGE_PROPID_AUTHENTICATED) != 0); 530if (this.properties.GetUI4(NativeMethods.MESSAGE_PROPID_PROV_NAME_LEN) != 0) 531return StringFromBytes(this.properties.GetString(NativeMethods.MESSAGE_PROPID_PROV_NAME), 532properties.GetUI4(NativeMethods.MESSAGE_PROPID_PROV_NAME_LEN)); 550properties.SetString(NativeMethods.MESSAGE_PROPID_PROV_NAME, StringToBytes(value)); 551properties.SetUI4(NativeMethods.MESSAGE_PROPID_PROV_NAME_LEN, value.Length); 578return (CryptographicProviderType)properties.GetUI4(NativeMethods.MESSAGE_PROPID_PROV_TYPE); 593properties.SetUI4(NativeMethods.MESSAGE_PROPID_PROV_TYPE, (int)value); 667this.cachedBodyStream = new MemoryStream(properties.GetUI1Vector(NativeMethods.MESSAGE_PROPID_BODY), 6680, properties.GetUI4(NativeMethods.MESSAGE_PROPID_BODY_SIZE)); 680properties.Remove(NativeMethods.MESSAGE_PROPID_BODY); 681properties.Remove(NativeMethods.MESSAGE_PROPID_BODY_TYPE); 682properties.Remove(NativeMethods.MESSAGE_PROPID_BODY_SIZE); 710return this.properties.GetUI4(NativeMethods.MESSAGE_PROPID_BODY_TYPE); 715properties.SetUI4(NativeMethods.MESSAGE_PROPID_BODY_TYPE, value); 745return new Guid(this.properties.GetGuid(NativeMethods.MESSAGE_PROPID_CONNECTOR_TYPE)); 754properties.Remove(NativeMethods.MESSAGE_PROPID_CONNECTOR_TYPE); 759properties.SetGuid(NativeMethods.MESSAGE_PROPID_CONNECTOR_TYPE, ((Guid)value).ToByteArray()); 786return IdFromByteArray(this.properties.GetUI1Vector(NativeMethods.MESSAGE_PROPID_CORRELATIONID)); 798properties.Remove(NativeMethods.MESSAGE_PROPID_CORRELATIONID); 803properties.SetUI1Vector(NativeMethods.MESSAGE_PROPID_CORRELATIONID, IdToByteArray(value)); 874if (this.properties.GetUI4(NativeMethods.MESSAGE_PROPID_DEST_QUEUE_LEN) != 0) 876string queueFormatName = StringFromBytes(properties.GetString(NativeMethods.MESSAGE_PROPID_DEST_QUEUE), 877properties.GetUI4(NativeMethods.MESSAGE_PROPID_DEST_QUEUE_LEN)); 909byte[] bytes = new byte[properties.GetUI4(NativeMethods.MESSAGE_PROPID_DEST_SYMM_KEY_LEN)]; 910Array.Copy(properties.GetUI1Vector(NativeMethods.MESSAGE_PROPID_DEST_SYMM_KEY), bytes, bytes.Length); 923properties.Remove(NativeMethods.MESSAGE_PROPID_DEST_SYMM_KEY); 924properties.Remove(NativeMethods.MESSAGE_PROPID_DEST_SYMM_KEY_LEN); 929properties.SetUI1Vector(NativeMethods.MESSAGE_PROPID_DEST_SYMM_KEY, value); 930properties.SetUI4(NativeMethods.MESSAGE_PROPID_DEST_SYMM_KEY_LEN, value.Length); 958byte[] bytes = new byte[properties.GetUI4(NativeMethods.MESSAGE_PROPID_SIGNATURE_LEN)]; 959Array.Copy(properties.GetUI1Vector(NativeMethods.MESSAGE_PROPID_SIGNATURE), bytes, bytes.Length); 971properties.Remove(NativeMethods.MESSAGE_PROPID_SIGNATURE); 972properties.Remove(NativeMethods.MESSAGE_PROPID_SIGNATURE_LEN); 979properties.SetUI1Vector(NativeMethods.MESSAGE_PROPID_SIGNATURE, value); 980properties.SetUI4(NativeMethods.MESSAGE_PROPID_SIGNATURE_LEN, value.Length); 1006return (EncryptionAlgorithm)properties.GetUI4(NativeMethods.MESSAGE_PROPID_ENCRYPTION_ALG); 1020properties.SetUI4(NativeMethods.MESSAGE_PROPID_ENCRYPTION_ALG, (int)value); 1049byte[] bytes = new byte[properties.GetUI4(NativeMethods.MESSAGE_PROPID_EXTENSION_LEN)]; 1050Array.Copy(properties.GetUI1Vector(NativeMethods.MESSAGE_PROPID_EXTENSION), bytes, bytes.Length); 1063properties.Remove(NativeMethods.MESSAGE_PROPID_EXTENSION); 1064properties.Remove(NativeMethods.MESSAGE_PROPID_EXTENSION_LEN); 1069properties.SetUI1Vector(NativeMethods.MESSAGE_PROPID_EXTENSION, value); 1070properties.SetUI4(NativeMethods.MESSAGE_PROPID_EXTENSION_LEN, value.Length); 1126return (HashAlgorithm)properties.GetUI4(NativeMethods.MESSAGE_PROPID_HASH_ALG); 1141properties.SetUI4(NativeMethods.MESSAGE_PROPID_HASH_ALG, (int)value); 1167return IdFromByteArray(this.properties.GetUI1Vector(NativeMethods.MESSAGE_PROPID_MSGID)); 1191return (properties.GetUI1(NativeMethods.MESSAGE_PROPID_FIRST_IN_XACT) != 0); 1215return (properties.GetUI1(NativeMethods.MESSAGE_PROPID_LAST_IN_XACT) != 0); 1239if (properties.GetUI4(NativeMethods.MESSAGE_PROPID_LABEL_LEN) != 0) 1240return StringFromBytes(this.properties.GetString(NativeMethods.MESSAGE_PROPID_LABEL), 1241properties.GetUI4(NativeMethods.MESSAGE_PROPID_LABEL_LEN)); 1255properties.Remove(NativeMethods.MESSAGE_PROPID_LABEL); 1256properties.Remove(NativeMethods.MESSAGE_PROPID_LABEL_LEN); 1261properties.SetString(NativeMethods.MESSAGE_PROPID_LABEL, StringToBytes(value)); 1262properties.SetUI4(NativeMethods.MESSAGE_PROPID_LABEL_LEN, value.Length); 1289return this.properties.GetUI8(NativeMethods.MESSAGE_PROPID_LOOKUPID); 1296this.properties.SetUI8(NativeMethods.MESSAGE_PROPID_LOOKUPID, value); 1319int cls = properties.GetUI2(NativeMethods.MESSAGE_PROPID_CLASS); 1353return (MessagePriority)properties.GetUI1(NativeMethods.MESSAGE_PROPID_PRIORITY); 1365properties.Remove(NativeMethods.MESSAGE_PROPID_PRIORITY); 1370properties.SetUI1(NativeMethods.MESSAGE_PROPID_PRIORITY, (byte)value); 1397return properties.GetUI1(NativeMethods.MESSAGE_PROPID_DELIVERY) == NativeMethods.MESSAGE_DELIVERY_RECOVERABLE; 1406properties.Remove(NativeMethods.MESSAGE_PROPID_DELIVERY); 1411properties.SetUI1(NativeMethods.MESSAGE_PROPID_DELIVERY, (byte)NativeMethods.MESSAGE_DELIVERY_RECOVERABLE); 1439if (properties.GetUI4(NativeMethods.MESSAGE_PROPID_RESP_QUEUE_LEN) != 0) 1441string queueFormatName = StringFromBytes(properties.GetString(NativeMethods.MESSAGE_PROPID_RESP_QUEUE), 1442properties.GetUI4(NativeMethods.MESSAGE_PROPID_RESP_QUEUE_LEN)); 1461properties.Remove(NativeMethods.MESSAGE_PROPID_RESP_QUEUE); 1462properties.Remove(NativeMethods.MESSAGE_PROPID_RESP_QUEUE_LEN); 1479IntPtr handle = (IntPtr)(int)properties.GetUI4(NativeMethods.MESSAGE_PROPID_SECURITY_CONTEXT); 1488properties.Remove(NativeMethods.MESSAGE_PROPID_SECURITY_CONTEXT); 1495properties.SetUI4(NativeMethods.MESSAGE_PROPID_SECURITY_CONTEXT, handle); 1524byte[] bytes = new byte[properties.GetUI4(NativeMethods.MESSAGE_PROPID_SENDER_CERT_LEN)]; 1525Array.Copy(properties.GetUI1Vector(NativeMethods.MESSAGE_PROPID_SENDER_CERT), bytes, bytes.Length); 1538properties.Remove(NativeMethods.MESSAGE_PROPID_SENDER_CERT); 1539properties.Remove(NativeMethods.MESSAGE_PROPID_SENDER_CERT_LEN); 1544properties.SetUI1Vector(NativeMethods.MESSAGE_PROPID_SENDER_CERT, value); 1545properties.SetUI4(NativeMethods.MESSAGE_PROPID_SENDER_CERT_LEN, value.Length); 1573byte[] bytes = new byte[properties.GetUI4(NativeMethods.MESSAGE_PROPID_SENDERID_LEN)]; 1574Array.Copy(properties.GetUI1Vector(NativeMethods.MESSAGE_PROPID_SENDERID), bytes, bytes.Length); 1598return (long)((uint)properties.GetUI4(NativeMethods.MESSAGE_PROPID_VERSION)); 1622time = time.AddSeconds(properties.GetUI4(NativeMethods.MESSAGE_PROPID_SENTTIME)).ToLocalTime(); 1646byte[] bytes = this.properties.GetGuid(NativeMethods.MESSAGE_PROPID_SRC_MACHINE_ID); 1696return TimeSpan.FromSeconds((uint)properties.GetUI4(NativeMethods.MESSAGE_PROPID_TIME_TO_BE_RECEIVED)); 1712properties.Remove(NativeMethods.MESSAGE_PROPID_TIME_TO_BE_RECEIVED); 1717properties.SetUI4(NativeMethods.MESSAGE_PROPID_TIME_TO_BE_RECEIVED, (int)((uint)timeoutInSeconds)); 1746return TimeSpan.FromSeconds((uint)properties.GetUI4(NativeMethods.MESSAGE_PROPID_TIME_TO_REACH_QUEUE)); 1761properties.Remove(NativeMethods.MESSAGE_PROPID_TIME_TO_REACH_QUEUE); 1766properties.SetUI4(NativeMethods.MESSAGE_PROPID_TIME_TO_REACH_QUEUE, (int)((uint)timeoutInSeconds)); 1792return IdFromByteArray(this.properties.GetUI1Vector(NativeMethods.MESSAGE_PROPID_XACTID)); 1819if (this.properties.GetUI4(NativeMethods.MESSAGE_PROPID_XACT_STATUS_QUEUE_LEN) != 0) 1821string queueFormatName = StringFromBytes(properties.GetString(NativeMethods.MESSAGE_PROPID_XACT_STATUS_QUEUE), 1822properties.GetUI4(NativeMethods.MESSAGE_PROPID_XACT_STATUS_QUEUE_LEN)); 1841properties.Remove(NativeMethods.MESSAGE_PROPID_XACT_STATUS_QUEUE); 1842properties.Remove(NativeMethods.MESSAGE_PROPID_XACT_STATUS_QUEUE_LEN); 1882return (properties.GetUI4(NativeMethods.MESSAGE_PROPID_AUTH_LEVEL) != NativeMethods.MESSAGE_AUTHENTICATION_LEVEL_NONE); 1892properties.SetUI4(NativeMethods.MESSAGE_PROPID_AUTH_LEVEL, NativeMethods.MESSAGE_AUTHENTICATION_LEVEL_NONE); 1896properties.SetUI4(NativeMethods.MESSAGE_PROPID_AUTH_LEVEL, NativeMethods.MESSAGE_AUTHENTICATION_LEVEL_ALWAYS); 1922return ((properties.GetUI1(NativeMethods.MESSAGE_PROPID_JOURNAL) & NativeMethods.MESSAGE_JOURNAL_DEADLETTER) != 0); 1934properties.Remove(NativeMethods.MESSAGE_PROPID_JOURNAL); 1936properties.SetUI1(NativeMethods.MESSAGE_PROPID_JOURNAL, (byte)(properties.GetUI1(NativeMethods.MESSAGE_PROPID_JOURNAL) & ~NativeMethods.MESSAGE_JOURNAL_DEADLETTER)); 1942properties.SetUI1(NativeMethods.MESSAGE_PROPID_JOURNAL, (byte)NativeMethods.MESSAGE_JOURNAL_DEADLETTER); 1944properties.SetUI1(NativeMethods.MESSAGE_PROPID_JOURNAL, (byte)(properties.GetUI1(NativeMethods.MESSAGE_PROPID_JOURNAL) | NativeMethods.MESSAGE_JOURNAL_DEADLETTER)); 1971return (properties.GetUI4(NativeMethods.MESSAGE_PROPID_PRIV_LEVEL) != NativeMethods.MESSAGE_PRIVACY_LEVEL_NONE); 1980properties.Remove(NativeMethods.MESSAGE_PROPID_PRIV_LEVEL); 1985properties.SetUI4(NativeMethods.MESSAGE_PROPID_PRIV_LEVEL, NativeMethods.MESSAGE_PRIVACY_LEVEL_BODY); 2011return ((properties.GetUI1(NativeMethods.MESSAGE_PROPID_JOURNAL) & NativeMethods.MESSAGE_JOURNAL_JOURNAL) != 0); 2023properties.Remove(NativeMethods.MESSAGE_PROPID_JOURNAL); 2025properties.SetUI1(NativeMethods.MESSAGE_PROPID_JOURNAL, (byte)(properties.GetUI1(NativeMethods.MESSAGE_PROPID_JOURNAL) & ~NativeMethods.MESSAGE_JOURNAL_JOURNAL)); 2031properties.SetUI1(NativeMethods.MESSAGE_PROPID_JOURNAL, (byte)NativeMethods.MESSAGE_JOURNAL_JOURNAL); 2033properties.SetUI1(NativeMethods.MESSAGE_PROPID_JOURNAL, (byte)(properties.GetUI1(NativeMethods.MESSAGE_PROPID_JOURNAL) | NativeMethods.MESSAGE_JOURNAL_JOURNAL)); 2062return (properties.GetUI1(NativeMethods.MESSAGE_PROPID_TRACE) != NativeMethods.MESSAGE_TRACE_NONE); 2071properties.Remove(NativeMethods.MESSAGE_PROPID_TRACE); 2078properties.SetUI1(NativeMethods.MESSAGE_PROPID_TRACE, (byte)NativeMethods.MESSAGE_TRACE_NONE); 2080properties.SetUI1(NativeMethods.MESSAGE_PROPID_TRACE, (byte)NativeMethods.MESSAGE_TRACE_SEND_ROUTE_TO_REPORT_QUEUE); 2091int size = properties.GetUI4(NativeMethods.MESSAGE_PROPID_ADMIN_QUEUE_LEN); 2093properties.SetString(NativeMethods.MESSAGE_PROPID_ADMIN_QUEUE, new byte[size * 2]); 2098int size = properties.GetUI4(NativeMethods.MESSAGE_PROPID_BODY_SIZE); 2100properties.SetUI1Vector(NativeMethods.MESSAGE_PROPID_BODY, new byte[size]); 2105int size = properties.GetUI4(NativeMethods.MESSAGE_PROPID_PROV_NAME_LEN); 2107properties.SetString(NativeMethods.MESSAGE_PROPID_PROV_NAME, new byte[size * 2]); 2112int size = properties.GetUI4(NativeMethods.MESSAGE_PROPID_DEST_QUEUE_LEN); 2114properties.SetString(NativeMethods.MESSAGE_PROPID_DEST_QUEUE, new byte[size * 2]); 2119int size = properties.GetUI4(NativeMethods.MESSAGE_PROPID_EXTENSION_LEN); 2121properties.SetUI1Vector(NativeMethods.MESSAGE_PROPID_EXTENSION, new byte[size]); 2126int size = properties.GetUI4(NativeMethods.MESSAGE_PROPID_XACT_STATUS_QUEUE_LEN); 2128properties.SetString(NativeMethods.MESSAGE_PROPID_XACT_STATUS_QUEUE, new byte[size * 2]); 2133int size = properties.GetUI4(NativeMethods.MESSAGE_PROPID_LABEL_LEN); 2135properties.SetString(NativeMethods.MESSAGE_PROPID_LABEL, new byte[size * 2]); 2140int size = properties.GetUI4(NativeMethods.MESSAGE_PROPID_RESP_QUEUE_LEN); 2142properties.SetString(NativeMethods.MESSAGE_PROPID_RESP_QUEUE, new byte[size * 2]); 2147int size = properties.GetUI4(NativeMethods.MESSAGE_PROPID_SENDER_CERT_LEN); 2149properties.SetUI1Vector(NativeMethods.MESSAGE_PROPID_SENDER_CERT, new byte[size]); 2154int size = properties.GetUI4(NativeMethods.MESSAGE_PROPID_SENDERID_LEN); 2156properties.SetUI1Vector(NativeMethods.MESSAGE_PROPID_SENDERID, new byte[size]); 2161int size = properties.GetUI4(NativeMethods.MESSAGE_PROPID_DEST_SYMM_KEY_LEN); 2163properties.SetUI1Vector(NativeMethods.MESSAGE_PROPID_DEST_SYMM_KEY, new byte[size]); 2168int size = properties.GetUI4(NativeMethods.MESSAGE_PROPID_SIGNATURE_LEN); 2170properties.SetUI1Vector(NativeMethods.MESSAGE_PROPID_SIGNATURE, new byte[size]); 2183properties.SetString(NativeMethods.MESSAGE_PROPID_ADMIN_QUEUE, StringToBytes(queueFormatName)); 2184properties.SetUI4(NativeMethods.MESSAGE_PROPID_ADMIN_QUEUE_LEN, queueFormatName.Length); 2190properties.SetString(NativeMethods.MESSAGE_PROPID_RESP_QUEUE, StringToBytes(queueFormatName)); 2191properties.SetUI4(NativeMethods.MESSAGE_PROPID_RESP_QUEUE_LEN, queueFormatName.Length); 2197properties.SetString(NativeMethods.MESSAGE_PROPID_XACT_STATUS_QUEUE, StringToBytes(queueFormatName)); 2198properties.SetUI4(NativeMethods.MESSAGE_PROPID_XACT_STATUS_QUEUE_LEN, queueFormatName.Length); 2214properties.SetUI1Vector(NativeMethods.MESSAGE_PROPID_BODY, bytes); 2215properties.SetUI4(NativeMethods.MESSAGE_PROPID_BODY_SIZE, bytes.Length); 2229int bodySize = properties.GetUI4(NativeMethods.MESSAGE_PROPID_BODY_SIZE); 2230byte[] bodyArray = properties.GetUI1Vector(NativeMethods.MESSAGE_PROPID_BODY); 2240properties.SetUI1Vector(NativeMethods.MESSAGE_PROPID_BODY, bytes); 2245this.properties.AdjustSize(NativeMethods.MESSAGE_PROPID_EXTENSION, 2246this.properties.GetUI4(NativeMethods.MESSAGE_PROPID_EXTENSION_LEN)); 2250this.properties.AdjustSize(NativeMethods.MESSAGE_PROPID_SENDER_CERT, 2251this.properties.GetUI4(NativeMethods.MESSAGE_PROPID_SENDER_CERT_LEN)); 2255this.properties.AdjustSize(NativeMethods.MESSAGE_PROPID_DEST_SYMM_KEY, 2256this.properties.GetUI4(NativeMethods.MESSAGE_PROPID_DEST_SYMM_KEY_LEN)); 2261this.properties.Ghost(NativeMethods.MESSAGE_PROPID_CLASS); 2263this.properties.Ghost(NativeMethods.MESSAGE_PROPID_ARRIVEDTIME); 2265this.properties.Ghost(NativeMethods.MESSAGE_PROPID_AUTHENTICATED); 2268this.properties.Ghost(NativeMethods.MESSAGE_PROPID_DEST_QUEUE); 2269this.properties.Ghost(NativeMethods.MESSAGE_PROPID_DEST_QUEUE_LEN); 2273this.properties.Ghost(NativeMethods.MESSAGE_PROPID_FIRST_IN_XACT); 2275this.properties.Ghost(NativeMethods.MESSAGE_PROPID_LAST_IN_XACT); 2278this.properties.Ghost(NativeMethods.MESSAGE_PROPID_SENDERID); 2279this.properties.Ghost(NativeMethods.MESSAGE_PROPID_SENDERID_LEN); 2282this.properties.Ghost(NativeMethods.MESSAGE_PROPID_SENTTIME); 2284this.properties.Ghost(NativeMethods.MESSAGE_PROPID_SRC_MACHINE_ID); 2286this.properties.Ghost(NativeMethods.MESSAGE_PROPID_XACTID); 2288this.properties.Ghost(NativeMethods.MESSAGE_PROPID_VERSION); 2294if (properties.GetUI4(NativeMethods.MESSAGE_PROPID_ADMIN_QUEUE_LEN) == 0) 2296this.properties.Ghost(NativeMethods.MESSAGE_PROPID_ADMIN_QUEUE); 2297this.properties.Ghost(NativeMethods.MESSAGE_PROPID_ADMIN_QUEUE_LEN); 2304this.properties.Ghost(NativeMethods.MESSAGE_PROPID_ENCRYPTION_ALG); 2308if (properties.GetUI4(NativeMethods.MESSAGE_PROPID_SIGNATURE_LEN) == 0) 2310this.properties.Ghost(NativeMethods.MESSAGE_PROPID_SIGNATURE); 2311this.properties.Ghost(NativeMethods.MESSAGE_PROPID_SIGNATURE_LEN); 2316if (properties.GetUI4(NativeMethods.MESSAGE_PROPID_DEST_SYMM_KEY_LEN) == 0) 2318this.properties.Ghost(NativeMethods.MESSAGE_PROPID_DEST_SYMM_KEY); 2319this.properties.Ghost(NativeMethods.MESSAGE_PROPID_DEST_SYMM_KEY_LEN); 2324if (properties.GetUI4(NativeMethods.MESSAGE_PROPID_RESP_QUEUE_LEN) == 0) 2326this.properties.Ghost(NativeMethods.MESSAGE_PROPID_RESP_QUEUE); 2327this.properties.Ghost(NativeMethods.MESSAGE_PROPID_RESP_QUEUE_LEN); 2332if (properties.GetUI4(NativeMethods.MESSAGE_PROPID_XACT_STATUS_QUEUE_LEN) == 0) 2334this.properties.Ghost(NativeMethods.MESSAGE_PROPID_XACT_STATUS_QUEUE); 2335this.properties.Ghost(NativeMethods.MESSAGE_PROPID_XACT_STATUS_QUEUE_LEN); 2401return this.properties.Lock(); 2432this.properties.Unlock();