Clipboard.GetDataObject Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a data object that represents the entire contents of the Clipboard.
public:
static System::Windows::IDataObject ^ GetDataObject();
[System.Security.SecurityCritical]
public static System.Windows.IDataObject GetDataObject ();
public static System.Windows.IDataObject GetDataObject ();
[<System.Security.SecurityCritical>]
static member GetDataObject : unit -> System.Windows.IDataObject
static member GetDataObject : unit -> System.Windows.IDataObject
Public Shared Function GetDataObject () As IDataObject
Returns
A data object that enables access to the entire contents of the system Clipboard, or null
if there is no data on the Clipboard.
- Attributes
Remarks
Access to data on the system Clipboard is enabled through a data object, that is, an object that implements the IDataObject interface. A list of predefined formats is defined by the DataFormats class. Use the methods specified by IDataObject and fields in DataFormats to examine and extract the data from the data object.
To examine the formats of data on the system Clipboard, call GetFormats on the data object returned by this method. To retrieve data from the system Clipboard, call GetData and specify the desired data format.
The system Clipboard is shared by all applications, so data on the Clipboard is subject to change by other applications.
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기