共用方式為


CopyToClipboardEventArgs 類別

Returns information when the OnCopyToClipboard event occurs.

繼承階層

System. . :: . .Object
  System. . :: . .EventArgs
    Microsoft.SqlServer.MessageBox..::..CopyToClipboardEventArgs

命名空間:  Microsoft.SqlServer.MessageBox
組件:  Microsoft.ExceptionMessageBox (在 Microsoft.ExceptionMessageBox.dll 中)

語法

'宣告
Public NotInheritable Class CopyToClipboardEventArgs _
    Inherits EventArgs
'用途
Dim instance As CopyToClipboardEventArgs
public sealed class CopyToClipboardEventArgs : EventArgs
public ref class CopyToClipboardEventArgs sealed : public EventArgs
[<SealedAttribute>]
type CopyToClipboardEventArgs =  
    class
        inherit EventArgs
    end
public final class CopyToClipboardEventArgs extends EventArgs

CopyToClipboardEventArgs 型別公開下列成員。

建構函式

  名稱 說明
公用方法 CopyToClipboardEventArgs() () () () Creates a new instance of CopyToClipboardEventArgs with the default properties.
公用方法 CopyToClipboardEventArgs(String) Creates a new instance of CopyToClipboardEventArgs with the specified copied text.

上層

屬性

  名稱 說明
公用屬性 ClipboardText Gets the error message information being copied.
公用屬性 EventHandled Gets or sets whether the OnCopyToClipboard event is handled.

上層

方法

  名稱 說明
公用方法 Equals (繼承自 Object。)
受保護的方法 Finalize (繼承自 Object。)
公用方法 GetHashCode (繼承自 Object。)
公用方法 GetType (繼承自 Object。)
受保護的方法 MemberwiseClone (繼承自 Object。)
公用方法 ToString (繼承自 Object。)

上層

備註

The OnCopyToClipboard event is used when the message box is displayed in a multi-threaded application from a thread that does not belong to a Microsoft Windows form. In this case, an exception occurs, and the OnCopyToClipboard event enables the action to be marshaled manually to the appropriate thread. In this case, the EventHandled property should be set to true to prevent the exception message box from continuing with the copy operation.

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。