DataRelation.ToString メソッド
RelationName が存在する場合は、このリレーションシップの名前を取得します。
Overrides Public Function ToString() As String
[C#]
public override string ToString();
[C++]
public: String* ToString();
[JScript]
public override function ToString() : String;
戻り値
RelationName プロパティの値。
使用例
[Visual Basic, C#, C++] ToString プロパティを使用して DataRelation オブジェクトの名前を返す例を次に示します。
Private Sub PrintName(myRelation As DataRelation)
' Print the name of the DataRelation.
Console.WriteLine(myRelation.ToString())
End Sub
[C#]
private void PrintName(DataRelation myRelation){
// Print the name of the DataRelation.
{
Console.WriteLine(myRelation.ToString());
}
}
[C++]
private:
void PrintName(DataRelation* myRelation){
// Print the name of the DataRelation.
{
Console::WriteLine(myRelation->ToString());
}
}
[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン をクリックします。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET
参照
DataRelation クラス | DataRelation メンバ | System.Data 名前空間 | Expression | ColumnName