ProfilePropertySettings.Type プロパティとは何? わかりやすく解説 Weblio辞書 (original) (raw)
メモ : このプロパティは、.NET Framework version 2.0 で新しく追加されたものです。
動的に生成された ProfileCommon クラスの関連付けられているプロパティの型の名前を設定または取得します。
名前空間: System.Web.Configuration
アセンブリ: System.Web (system.web.dll 内)
構文
Public Property Type As String
Dim instance As ProfilePropertySettings Dim value As String
value = instance.Type
instance.Type = value
public string Type { get; set; }
public: property String^ Type { String^ get (); void set (String^ value); }
/** @property */ public String get_Type ()
/** @property */ public void set_Type (String value)
public function get Type () : String
public function set Type (value : String)
プロパティ値
有効な完全修飾型参照、または空の文字列 ("")。既定値は空の文字列です。
有効な型参照が設定されると、この型は生成される ProfileCommon クラスの名前付きプロパティに使用されます。
型参照の形式は次のとおりです ([] で囲まれたアイテムはオプション)。Namespace.Typename, Assemblyname[,] [Version=x,] [Culture=y,] [PublicKeyToken=z]
"ExampleNameSpace.ExampleType, Example.Assembly, Version=%ASSEMBLY_VERSION%, Culture=neutral, PublicKeyToken=%MICROSOFT_PUBLICKEY%"
Type プロパティの使用方法のコード例を次に示します。このコード例は、ProfileSection クラスのトピックで取り上げているコード例の一部分です。
' Get the current Type property value. Console.WriteLine( _ "Current Type value: '{0}'", profilePropertySettings.Type)
' Set the Type property to "System.DateTime". profilePropertySettings.Type = "System.DateTime"
// Get the current Type property value. Console.WriteLine( "Current Type value: '{0}'", profilePropertySettings.Type);
// Set the Type property to "System.DateTime". profilePropertySettings.Type = "System.DateTime";
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
関連項目
ProfilePropertySettings クラス
ProfilePropertySettings メンバ
System.Web.Configuration 名前空間
ProfileSection