DataFormats.Dif 필드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
Windows Forms 직접 사용하지 않는 Windows DIF(데이터 교환 형식)를 지정합니다. 이 static 필드는 읽기 전용입니다.
public: static initonly System::String ^ Dif;
public static readonly string Dif;
staticval mutable Dif : string
Public Shared ReadOnly Dif As String
필드 값
예제
다음 코드 예제에서는이 멤버의 사용을 보여 줍니다.
FileStream^ myFileStream = File::Open( "Temp.dif", FileMode::Open );
// Store the data into Dif format.
DataObject^ myDataObject = gcnew DataObject;
myDataObject->SetData( DataFormats::Dif, myFileStream );
// Check whether the data is stored or not in the specified format.
bool formatPresent = myDataObject->GetDataPresent( DataFormats::Dif );
if ( formatPresent )
{
Console::WriteLine( "The data has been stored in the Dif format is:'{0}'", formatPresent );
}
else
{
Console::WriteLine( "The data has not been stored in the specified format" );
}
FileStream myFileStream = File.Open("Temp.dif",FileMode.Open);
// Store the data into Dif format.
DataObject myDataObject = new DataObject();
myDataObject.SetData(DataFormats.Dif,myFileStream);
// Check whether the data is stored or not in the specified format.
bool formatPresent = myDataObject.GetDataPresent(DataFormats.Dif);
if(formatPresent)
{
Console.WriteLine("The data has been stored in the Dif format is:'"+formatPresent+"'");
}
else
{
Console.WriteLine("The data has not been stored in the specified format");
}
Dim myFileStream As FileStream = File.Open("Temp.dif", FileMode.Open)
' Store the data into Dif format.
Dim myDataObject As New DataObject()
myDataObject.SetData(DataFormats.Dif, myFileStream)
' Check whether the data is stored or not in the specified format.
Dim formatPresent As Boolean = myDataObject.GetDataPresent(DataFormats.Dif)
If formatPresent Then
Console.WriteLine(("The data has been stored in the Dif format is:'" + formatPresent.ToString() + "'"))
Else
Console.WriteLine("The data has not been stored in the specified format")
End If
설명
DIF는 데이터베이스, 스프레드시트 및 유사한 문서를 쉽게 사용하고 다른 프로그램으로 전송할 수 있도록 구성할 수 있는 ASCII 코드로 구성된 형식입니다.
이 필드는 인터페이스와 클래스에서 IDataObjectDataObject 데이터 형식을 지정하는 데 사용됩니다.
구현에 IDataObject 추가하거나 구현DataObject하는 경우 이 필드를 및 IDataObject.SetData 메서드의 DataObject.SetData 형식으로 사용합니다.
이 형식의 개체가 있는지 확인하려면 이 필드를 및 IDataObject.GetDataPresent 메서드의 DataObject.GetDataPresent 형식으로 사용합니다.
이 형식의 개체를 얻으려면 이 형식을 및 IDataObject.GetData 메서드의 DataObject.GetData 형식으로 사용합니다.