ResXManagerAddResourceT(String, T, String) Method
Adds a specified resource of the specified type into the .NET managed resource file.
Namespace: DevCase.Core.Application.ResourcesAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public virtual void AddResource<T>(
string name,
T data,
string comment = ""
)
Public Overridable Sub AddResource(Of T) (
name As String,
data As T,
Optional comment As String = ""
)
Dim instance As ResXManager
Dim name As String
Dim data As T
Dim comment As String
instance.AddResource(name, data, comment)
public:
generic<typename T>
virtual void AddResource(
String^ name,
T data,
String^ comment = L""
)
abstract AddResource :
name : string *
data : 'T *
?comment : string
(* Defaults:
let _comment = defaultArg comment ""
*)
-> unit
override AddResource :
name : string *
data : 'T *
?comment : string
(* Defaults:
let _comment = defaultArg comment ""
*)
-> unit
No code example is currently available or this language may not be supported.
- name String
-
The resource name.
- data T
-
The resource data.
- comment String (Optional)
-
The resource comment.
- T
-
The type.
FileNotFoundException
|
Resource file not found.
|
ArgumentException
|
A resource with the same name already exists in the table.;name
|