ProfilePropertySettings.Type プロパティとは何? わかりやすく解説 Weblio辞書 (original) (raw)

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

動的に生成されProfileCommon クラス関連付けられているプロパティの型の名前を設定または取得します

名前空間: System.Web.Configuration
アセンブリ: System.Web (system.web.dll 内)
構文構文

Visual Basic (宣言)

Public Property Type As String

Visual Basic (使用法)

Dim instance As ProfilePropertySettings Dim value As String

value = instance.Type

instance.Type = value

C#

public string Type { get; set; }

C++

public: property String^ Type { String^ get (); void set (String^ value); }

J#

/** @property */ public String get_Type ()

/** @property */ public void set_Type (String value)

JScript

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 クラストピック取り上げているコード例一部分です。

Visual Basic

' 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"

C#

// 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 によってサポートされていないバージョンありますサポートされているバージョンについては、「システム要件」を参照してください

バージョン情報バージョン情報

.NET Framework
サポート対象 : 2.0

参照参照

関連項目
ProfilePropertySettings クラス
ProfilePropertySettings メンバ
System.Web.Configuration 名前空間
ProfileSection