Res.cs 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  1. namespace Experimental.System.Messaging
  2. {
  3. internal static class Res
  4. {
  5. internal const string MSMQNotInstalled = "MSMQNotInstalled";
  6. internal const string TooManyColumns = "TooManyColumns";
  7. internal const string PlatformNotSupported = "PlatformNotSupported";
  8. internal const string MSMQInfoNotSupported = "MSMQInfoNotSupported";
  9. internal const string InfiniteValue = "InfiniteValue";
  10. internal const string InvalidTrustee = "InvalidTrustee";
  11. internal const string InvalidTrusteeName = "InvalidTrusteeName";
  12. internal const string CouldntResolve = "CouldntResolve";
  13. internal const string CouldntResolveName = "CouldntResolveName";
  14. internal const string DefaultSizeError = "DefaultSizeError";
  15. internal const string PathSyntax = "PathSyntax";
  16. internal const string InvalidParameter = "InvalidParameter";
  17. internal const string InvalidXmlFormat = "InvalidXmlFormat";
  18. internal const string CriteriaNotDefined = "CriteriaNotDefined";
  19. internal const string InvalidDateValue = "InvalidDateValue";
  20. internal const string InvalidProperty = "InvalidProperty";
  21. internal const string NoCurrentMessageQueue = "NoCurrentMessageQueue";
  22. internal const string LongQueueName = "LongQueueName";
  23. internal const string TransactionNotStarted = "TransactionNotStarted";
  24. internal const string TransactionStarted = "TransactionStarted";
  25. internal const string StoredObjectsNotSupported = "StoredObjectsNotSupported";
  26. internal const string InvalidTypeDeserialization = "InvalidTypeDeserialization";
  27. internal const string InvalidTypeSerialization = "InvalidTypeSerialization";
  28. internal const string IncorrectNumberOfBytes = "IncorrectNumberOfBytes";
  29. internal const string NotImplemented = "NotImplemented";
  30. internal const string NotAcknowledgement = "NotAcknowledgement";
  31. internal const string MissingProperty = "MissingProperty";
  32. internal const string ArrivedTimeNotSet = "ArrivedTimeNotSet";
  33. internal const string AuthenticationNotSet = "AuthenticationNotSet";
  34. internal const string FormatterMissing = "FormatterMissing";
  35. internal const string DestinationQueueNotSet = "DestinationQueueNotSet";
  36. internal const string IdNotSet = "IdNotSet";
  37. internal const string LookupIdNotSet = "LookupIdNotSet";
  38. internal const string MessageTypeNotSet = "MessageTypeNotSet";
  39. internal const string SenderIdNotSet = "SenderIdNotSet";
  40. internal const string VersionNotSet = "VersionNotSet";
  41. internal const string SentTimeNotSet = "SentTimeNotSet";
  42. internal const string SourceMachineNotSet = "SourceMachineNotSet";
  43. internal const string InvalidId = "InvalidId";
  44. internal const string TypeListMissing = "TypeListMissing";
  45. internal const string InvalidLabel = "InvalidLabel";
  46. internal const string AmbiguousLabel = "AmbiguousLabel";
  47. internal const string InvalidQueuePathToCreate = "InvalidQueuePathToCreate";
  48. internal const string AsyncResultInvalid = "AsyncResultInvalid";
  49. internal const string QueueExistsError = "QueueExistsError";
  50. internal const string NoCurrentMessage = "NoCurrentMessage";
  51. internal const string NotSet = "NotSet";
  52. internal const string MessageNotFound = "MessageNotFound";
  53. internal const string UnknownError = "UnknownError";
  54. internal const string toStringNone = "(none)";
  55. internal const string MsgAcknowledgement = "Gets the classification of acknowledgment that this message represents.";
  56. internal const string MsgAcknowledgeType = "Specifies the type of acknowledgment messages the system posts (in the administration queue) and when acknowledgments are returned.";
  57. internal const string MsgAdministrationQueue = "Specifies the administration queue used for system-generated acknowledgment.";
  58. internal const string MsgAppSpecific = "Specifies application-generated information such as single integer values or application-defined message classes.";
  59. internal const string MsgArrivedTime = "Indicates when the message arrived at the queue.";
  60. internal const string MsgAttachSenderId = "Indicates if the SenderId is to be or has been attached to the message.";
  61. internal const string MsgAuthenticated = "Used by the receiving application when trying to determine if authentication was requested. If authentication was requested and the message is in the queue, then the message was authenticated.";
  62. internal const string MsgAuthenticationProviderName = "Specifies the name of the cryptographic provider used to generate the digital signature of the message.";
  63. internal const string MsgAuthenticationProviderType = "Specifies the type of cryptographic provider used to generate the digital signature of the message.";
  64. internal const string MsgBody = "Represents the information included in the body of the message.";
  65. internal const string MsgConnectorType = "Whenever a message is passed by a connector application, the connector type is required so that the sending and receiving applications know how to interpret the security and acknowledgment properties of the messages. When sending application-encrypted messages, this property tells the MSMQ runtime to use the symmetric key.";
  66. internal const string MsgCorrelationId = "Provides an application-defined identifier that the receiving application can use to sort messages.";
  67. internal const string MsgDefaultBodySize = "The default body buffer size to create, when the message is received.";
  68. internal const string MsgDefaultExtensionSize = "The default extension buffer size to create, when the message is received.";
  69. internal const string MsgDefaultLabelSize = "The default label buffer size to create, when the message is received.";
  70. internal const string MsgDestinationQueue = "Identifies the original destination queue of a message.";
  71. internal const string MsgDestinationSymmetricKey = "Specifies the symmetric key used to encrypt messages. Is required when you send application-encrypted messages.";
  72. internal const string MsgDigitalSignature = "Specifies the digital signature used to authenticate the message.";
  73. internal const string MsgEncryptionAlgorithm = "Specifies the encryption algorithm used to encrypt the message body of a private message.";
  74. internal const string MsgExtension = "Provides a place to put additional application-defined information that is associated with the message.";
  75. internal const string MsgHashAlgorithm = "Identifies the hashing algorithm MSMQ uses when authenticating messages.";
  76. internal const string MsgId = "Indicates the MSMQ-generated identifier of the message.";
  77. internal const string MsgIsFirstInTransaction = "It is used by receiving applications to verify that a message was the first message sent in a single transaction to a single queue.";
  78. internal const string MsgIsLastInTransaction = "It is used by receiving applications to verify that a message was the last message sent from a single transaction to a single queue.";
  79. internal const string MsgLabel = "Specifies the label of the message.";
  80. internal const string MsgLookupId = "Indicates the MSMQ-generated lookup identifier of the message.";
  81. internal const string MsgMessageType = "A message can be a normal MSMQ message, a positive or negative (arrival and read) acknowledgment message, or a report message.";
  82. internal const string MsgPriority = "Message priority affects how MSMQ handles the message while it is in route, as well as where the message is placed in the queue.";
  83. internal const string MsgRecoverable = "The message will be delivered, even if a computer crashes while the message is en-route to the queue.";
  84. internal const string MsgResponseQueue = "Specifies the queue to which application-generated response messages are returned.";
  85. internal const string MsgSenderCertificate = "Specifies the security certificate used to authenticate messages.";
  86. internal const string MsgSenderId = "This property is set by MSMQ, and is used primarily by the receiving Queue Manager when authenticating a message.";
  87. internal const string MsgSenderVersion = "Specifies the version of MSMQ used to send the message.";
  88. internal const string MsgSentTime = "Indicates the date and time that the message was sent by the source Queue Manager.";
  89. internal const string MsgSourceMachine = "Specifies the computer where the message originated.";
  90. internal const string MsgTimeToBeReceived = "Specifies the total time (in seconds) the message is allowed to live. Use \"Infinity\" to set the maximum value.";
  91. internal const string MsgTimeToReachQueue = "Specifies a time limit (in seconds) for the message to reach the queue. Use \"Infinity\" to set the maximum value.";
  92. internal const string MsgTransactionId = "It is used by receiving applications to verify that a message was sent from a specific transaction.";
  93. internal const string MsgTransactionStatusQueue = "Identifies the transaction status queue on the source computer.";
  94. internal const string MsgUseAuthentication = "Specifies if the message needs to be authenticated.";
  95. internal const string MsgUseDeadLetterQueue = "Specifies if a copy of the message should be sent to a dead-letter queue.";
  96. internal const string MsgUseEncryption = "Set this property to have MSMQ encrypt a private message.";
  97. internal const string MsgUseJournalQueue = "Specifies if a copy of the message should be kept in a machine journal (on the originating machine).";
  98. internal const string MsgUseTracing = "Specifies if report messages are sent when tracing a message.";
  99. internal const string MsgTopObjectFormat = "Determines how the top (root) object of a graph is laid out in the serialized stream.";
  100. internal const string MsgTypeFormat = "Determines how type descriptions are laid out in the serialized stream.";
  101. internal const string MsgBodyStream = "Represents the information included in the body of the message.";
  102. internal const string MsgBodyType = "Indicates the type of body the message contains";
  103. internal const string XmlMsgTargetTypeNames = "Specifies the set of possible types that will be deserialized by the formatter from the message provided.";
  104. internal const string XmlMsgTargetTypes = "Specifies the set of possible types that will be deserialized by the formatter from the message provided.";
  105. internal const string MessageQueueDesc = "Provides access to a queue on a Message Queue server.";
  106. internal const string MQ_Authenticate = "Specifies whether or not the queue only accepts authenticated messages.";
  107. internal const string MQ_BasePriority = "Used for routing the queue's messages over the network.";
  108. internal const string MQ_CanRead = "Indicates if the queue has read permission.";
  109. internal const string MQ_CanWrite = "Indicates if the queue has write permission.";
  110. internal const string MQ_Category = "Allows applications to categorize their queues according to how they are used.";
  111. internal const string MQ_CreateTime = "Indicates the time and date when the queue was created.";
  112. internal const string MQ_DefaultPropertiesToSend = "Specifies the properties that are going to be used by default when sending messages to the queue referenced by this object.";
  113. internal const string MQ_DenySharedReceive = "If true, no other instance of this object will be able to receive messages.";
  114. internal const string MQ_EncryptionRequired = "Specifies whether or not the queue only accepts non-private (clear) messages.";
  115. internal const string MQ_FormatName = "Specifies a unique name for the queue generated by MSMQ when it is created.";
  116. internal const string MQ_Formatter = "This is the formatter that will be used when an object is written to or read from the body.";
  117. internal const string MQ_GuidId = "Identifies a specific public queue.";
  118. internal const string MQ_Label = "Specifies a description of the queue.";
  119. internal const string MQ_LastModifyTime = "Indicates the last time the properties of a queue were modified.";
  120. internal const string MQ_MachineName = "Specifies the machine where the queue referenced by this object is located.";
  121. internal const string MQ_MaximumJournalSize = "Specifies the maximum size (in kilobytes) of the journal queue. Use \"Infinity\" to set the maximum value.";
  122. internal const string MQ_MaximumQueueSize = "Specifies the maximum size (in kilobytes) of the queue. Use \"Infinity\" to set the maximum value.";
  123. internal const string MQ_MessageReadPropertyFilter = "Specifies the property filter used by this queue to receive messages.";
  124. internal const string MQ_MulticastAddress = "Specifies the IP multicast address associated with the queue.";
  125. internal const string MQ_Path = "Specifies the location of the queue that will be referenced by this object.";
  126. internal const string MQ_QueueName = "Specifies the friendly name that identifies the queue referenced by this object.";
  127. internal const string MQ_ReadHandle = "The native handle used to receive messages from the message queue.";
  128. internal const string MQ_SynchronizingObject = "The object used to marshal the event handler calls issued as a result of a BeginReceive or BeginPeek request.";
  129. internal const string MQ_Transactional = "If a queue is transactional, it can only accept messages that are sent as part of a transaction.";
  130. internal const string MQ_UseJournalQueue = "Specifies if messages retrieved from the MsgAuthenticationProviderNamequeue are also copied to its journal queue.";
  131. internal const string MQ_WriteHandle = "The native handle used to send messages to the message queue.";
  132. internal const string MQ_PeekCompleted = "This event occurs when a message is read without being removed from the queue using the BeginPeek method.";
  133. internal const string MQ_ReceiveCompleted = "This event occurs when a message is removed from the queue using the BeginReceive method.";
  134. internal static string GetString(string identifier, params object[] arguments)
  135. {
  136. switch (identifier)
  137. {
  138. case "MSMQNotInstalled":
  139. return "Message Queuing has not been installed on this computer.";
  140. case "TooManyColumns":
  141. return string.Format("Column Count limit exceeded ({0}).", arguments);
  142. case "PlatformNotSupported":
  143. return "Requested operation is not supported on this platform.";
  144. case "MSMQInfoNotSupported":
  145. return "Browsing private queues is not supported by the Microsoft Message Queuing (MSMQ) runtime installed on this computer.";
  146. case "InfiniteValue":
  147. return "Infinity";
  148. case "InvalidTrustee":
  149. return "Trustee property of an entry in the access control list is null.";
  150. case "InvalidTrusteeName":
  151. return "Entry in the access control list contains a trustee with an invalid name.";
  152. case "CouldntResolve":
  153. return "Could not resolve name {0} (error = {1} ).";
  154. case "CouldntResolveName":
  155. return "Could not resolve name {0}.";
  156. case "DefaultSizeError":
  157. return "Size is invalid. It must be greater than or equal to zero.";
  158. case "PathSyntax":
  159. return "Path syntax is invalid.";
  160. case "InvalidParameter":
  161. return "Invalid value {1} for parameter {0}.";
  162. case "InvalidXmlFormat":
  163. return "XML format is invalid.";
  164. case "CriteriaNotDefined":
  165. return "Criteria property has not been defined.";
  166. case "InvalidDateValue":
  167. return "Date is invalid. It must be between {0} and {1}.";
  168. case "InvalidProperty":
  169. return "Invalid value {1} for property {0}.";
  170. case "NoCurrentMessageQueue":
  171. return "Cursor is not currently pointing to a MessageQueue instance. It is located either before the first or after the last queue in the enumeration.";
  172. case "LongQueueName":
  173. return "Queue name is too long. Size of queue name cannot exceed 255 characters.";
  174. case "TransactionNotStarted":
  175. return "Cannot commit or roll back transaction because BeginTransaction has not been called.";
  176. case "TransactionStarted":
  177. return "Cannot start a transaction while a pending transaction exists.";
  178. case "StoredObjectsNotSupported":
  179. return "Stored object format is not supported by ActiveXMessageFormatter.";
  180. case "InvalidTypeDeserialization":
  181. return "Cannot deserialize the message passed as an argument. Cannot recognize the serialization format.";
  182. case "InvalidTypeSerialization":
  183. return "Cannot serialize the object because its type is not supported.";
  184. case "IncorrectNumberOfBytes":
  185. return "Wrote an incorrect number of bytes.";
  186. case "NotImplemented":
  187. return "Feature is not implemented.";
  188. case "NotAcknowledgement":
  189. return "Cannot retrieve property because the message is not an acknowledgment message.";
  190. case "MissingProperty":
  191. return "Property {0} was not retrieved when receiving the message. Ensure that the PropertyFilter is set correctly.";
  192. case "ArrivedTimeNotSet":
  193. return "Arrived time is undefined for this message. This message was not created by a call to the Receive method.";
  194. case "AuthenticationNotSet":
  195. return "Cannot determine authentication for this message. This message was not created by a call to the Receive method.";
  196. case "FormatterMissing":
  197. return "Cannot find a formatter capable of reading this message.";
  198. case "DestinationQueueNotSet":
  199. return "Destination queue is not defined for this message. The message was not created by a call to the Receive method.";
  200. case "IdNotSet":
  201. return "Unique identifier for this message is not defined. The message was not created by a call to the Receive method.";
  202. case "LookupIdNotSet":
  203. return "Lookup identifier is not defined for this message. The message was not created by a call to the Receive method, or lookup identifier was not added to the properties to retrieve.";
  204. case "MessageTypeNotSet":
  205. return "Type is not defined for this message. The message was not created by a call to the Receive method.";
  206. case "SenderIdNotSet":
  207. return "Sender identifier is not defined for this message. The message was not created by a call to the Receive method.";
  208. case "VersionNotSet":
  209. return "Message Queuing version is not defined for this message. The message was not created by a call to the Receive method.";
  210. case "SentTimeNotSet":
  211. return "Sent time is not defined for this message. The message was not created by a call to the Receive method.";
  212. case "SourceMachineNotSet":
  213. return "Source computer is not defined for this message. The message was not created by a call to the Receive method.";
  214. case "InvalidId":
  215. return "Identifier is not in the incorrect format.";
  216. case "TypeListMissing":
  217. return "Target type array is missing. The target type array must be set in order to deserialize the XML-formatted message.";
  218. case "InvalidLabel":
  219. return "Cannot find queue with label {0}.";
  220. case "AmbiguousLabel":
  221. return "Label \"{0}\" references more than one queue. Set the path for the desired queue.";
  222. case "InvalidQueuePathToCreate":
  223. return "Cannot create a queue with the path {0}.";
  224. case "AsyncResultInvalid":
  225. return "IAsyncResult interface passed is not valid because it was not created as a result of an asynchronous request on this object.";
  226. case "QueueExistsError":
  227. return "Cannot determine whether a queue with the specified format name exists.";
  228. case "NoCurrentMessage":
  229. return "Cursor is not currently pointing to a Message instance. It is located either before the first or after the last message in the enumeration.";
  230. case "NotSet":
  231. return "[Not Set]";
  232. case "MessageNotFound":
  233. return "Message requested was not found in the queue specified.";
  234. case "UnknownError":
  235. return "Error 0x{0} is unknown.";
  236. default:
  237. return null;
  238. }
  239. }
  240. }
  241. }