次の方法で共有


SecurityElement コンストラクタ (String, String)

SecurityElement クラスの新しいインスタンスを、指定したタグとテキストを使用して初期化します。

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

構文

'宣言
Public Sub New ( _
    tag As String, _
    text As String _
)
'使用
Dim tag As String
Dim text As String

Dim instance As New SecurityElement(tag, text)
public SecurityElement (
    string tag,
    string text
)
public:
SecurityElement (
    String^ tag, 
    String^ text
)
public SecurityElement (
    String tag, 
    String text
)
public function SecurityElement (
    tag : String, 
    text : String
)
適用できません。

パラメータ

  • tag
    XML 要素のタグ名。
  • text
    要素内のテキストの内容。

例外

例外の種類 条件

ArgumentNullException

tag パラメータが null 参照 (Visual Basic では Nothing) です。

ArgumentException

tag パラメータまたは text パラメータが、XML で無効です。

解説

text パラメータが null 参照 (Visual Basic では Nothing) の場合、このコンストラクタは、既定のコンストラクタと同じ要素を生成します。

プラットフォーム

Windows 98,Windows Server 2000 SP4,Windows CE,Windows Millennium Edition,Windows Mobile for Pocket PC,Windows Mobile for Smartphone,Windows Server 2003,Windows XP Media Center Edition,Windows XP Professional x64 Edition,Windows XP SP2,Windows XP Starter Edition

Microsoft .NET Framework 3.0 は Windows Vista,Microsoft Windows XP SP2,および Windows Server 2003 SP1 でサポートされています。

バージョン情報

.NET Framework

サポート対象 : 3.0,2.0,1.1,1.0

参照

関連項目

SecurityElement クラス
SecurityElement メンバ
System.Security 名前空間