다음을 통해 공유


DataObject.GetDataPresent Method (Type)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Checks whether the data is available in, or can be converted to, a specified format. The data format is specified by a Type object. Always throws an exception.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public Function GetDataPresent ( _
    format As Type _
) As Boolean
public bool GetDataPresent(
    Type format
)

Parameters

Return Value

Type: System.Boolean
Always throws an exception.

Implements

IDataObject.GetDataPresent(Type)

Exceptions

Exception Condition
NotImplementedException

Not implemented.

SecurityException

Attempted access in a mode other than Drop.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.