แก้ไข

แชร์ผ่าน


ResXDataNode Constructors

Definition

Initializes a new instance of the ResXDataNode class.

Overloads

ResXDataNode(String, Object)

Initializes a new instance of the ResXDataNode class.

ResXDataNode(String, ResXFileRef)

Initializes a new instance of the ResXDataNode class with a reference to a resource file.

ResXDataNode(String, Object, Func<Type,String>)

Initializes a new instance of the ResXDataNode class.

ResXDataNode(String, ResXFileRef, Func<Type,String>)

Initializes a new instance of the ResXDataNode class with a reference to a resource file.

ResXDataNode(String, Object)

Source:
ResXDataNode.cs
Source:
ResXDataNode.cs
Source:
ResXDataNode.cs

Initializes a new instance of the ResXDataNode class.

public:
 ResXDataNode(System::String ^ name, System::Object ^ value);
public ResXDataNode (string name, object value);
public ResXDataNode (string name, object? value);
new System.Resources.ResXDataNode : string * obj -> System.Resources.ResXDataNode
Public Sub New (name As String, value As Object)

Parameters

name
String

The name of the resource.

value
Object

The resource to store.

Exceptions

The resource named in value does not support serialization.

name is null.

name is a string of zero length.

Applies to

ResXDataNode(String, ResXFileRef)

Source:
ResXDataNode.cs
Source:
ResXDataNode.cs
Source:
ResXDataNode.cs

Initializes a new instance of the ResXDataNode class with a reference to a resource file.

public:
 ResXDataNode(System::String ^ name, System::Resources::ResXFileRef ^ fileRef);
public ResXDataNode (string name, System.Resources.ResXFileRef fileRef);
new System.Resources.ResXDataNode : string * System.Resources.ResXFileRef -> System.Resources.ResXDataNode
Public Sub New (name As String, fileRef As ResXFileRef)

Parameters

name
String

The name of the resource.

fileRef
ResXFileRef

The file reference to use as the resource.

Exceptions

name is null or fileRef is null.

name is a string of zero length.

Applies to

ResXDataNode(String, Object, Func<Type,String>)

Source:
ResXDataNode.cs
Source:
ResXDataNode.cs
Source:
ResXDataNode.cs

Initializes a new instance of the ResXDataNode class.

public:
 ResXDataNode(System::String ^ name, System::Object ^ value, Func<Type ^, System::String ^> ^ typeNameConverter);
public ResXDataNode (string name, object value, Func<Type,string> typeNameConverter);
public ResXDataNode (string name, object? value, Func<Type?,string>? typeNameConverter);
new System.Resources.ResXDataNode : string * obj * Func<Type, string> -> System.Resources.ResXDataNode
Public Sub New (name As String, value As Object, typeNameConverter As Func(Of Type, String))

Parameters

name
String

The name of the resource.

value
Object

The resource to store.

typeNameConverter
Func<Type,String>

A reference to a method that takes a Type and returns a string containing the Type name.

Exceptions

The resource named in value does not support serialization.

name is null.

name is a string of zero length.

Applies to

ResXDataNode(String, ResXFileRef, Func<Type,String>)

Source:
ResXDataNode.cs
Source:
ResXDataNode.cs
Source:
ResXDataNode.cs

Initializes a new instance of the ResXDataNode class with a reference to a resource file.

public:
 ResXDataNode(System::String ^ name, System::Resources::ResXFileRef ^ fileRef, Func<Type ^, System::String ^> ^ typeNameConverter);
public ResXDataNode (string name, System.Resources.ResXFileRef fileRef, Func<Type,string> typeNameConverter);
public ResXDataNode (string name, System.Resources.ResXFileRef fileRef, Func<Type?,string>? typeNameConverter);
new System.Resources.ResXDataNode : string * System.Resources.ResXFileRef * Func<Type, string> -> System.Resources.ResXDataNode
Public Sub New (name As String, fileRef As ResXFileRef, typeNameConverter As Func(Of Type, String))

Parameters

name
String

The name of the resource.

fileRef
ResXFileRef

The file reference to use as the resource.

typeNameConverter
Func<Type,String>

A reference to a method that takes a Type and returns a string containing the Type name.

Exceptions

name is null or fileRef is null.

name is a string of zero length.

Applies to