GacMembershipCondition.ToString メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > GacMembershipCondition.ToString メソッドの意味・解説 

GacMembershipCondition.ToString メソッド

メモ : このメソッドは、.NET Framework version 2.0新しく追加されたものです。

メンバシップ条件文字列形式返します

名前空間: System.Security.Policy
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

解説解説

GacMembershipCondition の文字列形式は "GAC" です。

使用例使用例

ToString メソッド使用するコード例次に示します。このコード例は、GacMembershipCondition クラストピック取り上げているコード例一部分です。

Dim Gac1 As New GacMembershipCondition
Dim Gac2 As New GacMembershipCondition

' Roundtrip a GacMembershipCondition to and from an XML encoding.
Gac2.FromXml(Gac1.ToXml())
Dim result As Boolean =
 Gac2.Equals(Gac1)
If result Then
    Console.WriteLine(("Result of ToXml() = " &
 _ 
        Gac2.ToXml().ToString()))
    Console.WriteLine(("Result of ToFromXml roundtrip = "
 & _ 
        Gac2.ToString()))
Else
    Console.WriteLine(Gac2.ToString())
    Console.WriteLine(Gac1.ToString())
    Return False
End If
GacMembershipCondition Gac1 = new GacMembershipCondition();
GacMembershipCondition Gac2 = new GacMembershipCondition();

// Roundtrip a GacMembershipCondition to and from an XML encoding.
Gac2.FromXml(Gac1.ToXml());
bool result = Gac2.Equals(Gac1);
if (result)
{
    Console.WriteLine(
        "Result of ToXml() = " + Gac2.ToXml().ToString());
    Console.WriteLine(
        "Result of ToFromXml roundtrip = " + Gac2.ToString());
}
else
{
    Console.WriteLine(Gac2.ToString());
    Console.WriteLine(Gac1.ToString());
    return false;
}
GacMembershipCondition ^ Gac1 = gcnew GacMembershipCondition;
GacMembershipCondition ^ Gac2 = gcnew GacMembershipCondition;

// Roundtrip a GacMembershipCondition to and from an XML encoding.
Gac2->FromXml(Gac1->ToXml());
bool result = Gac2->Equals(Gac1);
if (result)
{
    Console::WriteLine("Result of ToXml() = {0}", Gac2->ToXml());
    Console::WriteLine(
        "Result of ToFromXml roundtrip = {0}", Gac2);
}
else
{
    Console::WriteLine(Gac2->ToString());
    Console::WriteLine(Gac1->ToString());
    return false;
}
GacMembershipCondition gac1 = new GacMembershipCondition();
GacMembershipCondition gac2 = new GacMembershipCondition();

// Roundtrip a GacMembershipCondition to and from an XML encoding.
gac2.FromXml(gac1.ToXml());
boolean result = gac2.Equals(gac1);
if (result) {
    Console.WriteLine(("Result of ToXml() = " 
        + gac2.ToXml().ToString()));
    Console.WriteLine(("Result of ToFromXml roundtrip = " 
        + gac2.ToString()));
}
else {
    Console.WriteLine(gac2.ToString());
    Console.WriteLine(gac1.ToString());
    return false;
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
GacMembershipCondition クラス
GacMembershipCondition メンバ
System.Security.Policy 名前空間



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

GacMembershipCondition.ToString メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



GacMembershipCondition.ToString メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS