此 API 支援 SQL Server 2012 基礎結構,但無法直接從您的程式碼使用。
Indicates whether the message queue can be read.
命名空間: Microsoft.SqlServer.Dts.Tasks.MessageQueueTask
組件: Microsoft.SqlServer.MSMQTask (在 Microsoft.SqlServer.MSMQTask.dll 中)
語法
'宣告
Public Function CanRead ( _
msg As Message _
) As Boolean
'用途
Dim instance As StringFormatter
Dim msg As Message
Dim returnValue As Boolean
returnValue = instance.CanRead(msg)
public bool CanRead(
Message msg
)
public:
virtual bool CanRead(
Message^ msg
) sealed
abstract CanRead :
msg:Message -> bool
override CanRead :
msg:Message -> bool
public final function CanRead(
msg : Message
) : boolean
參數
- msg
型別:System.Messaging.Message
The message queue whose readability is in question.
傳回值
型別:System.Boolean
true if the message object can be read; otherwise, false.
實作
IMessageFormatter.CanRead(Message)