ResXDataNode Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
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)
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>)
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.
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>)
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.
Exceptions
name
is null
or fileRef
is null
.
name
is a string of zero length.