ResXResourceSetGetString(String) Method

Searches for a String resource with the specified name.

Definition

Namespace: KGySoft.Resources
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public override string? GetString(
	string name
)

Parameters

name  String
Name of the resource to search for.

Return Value

String
The String value of a resource. If SafeMode is , an InvalidOperationException will be thrown for non-string resources. If SafeMode is , the raw XML value will be returned for non-string resources.

Remarks

For examples, see the description of the ResXResourceSet class.

Exceptions

ArgumentNullExceptionname is .
ObjectDisposedExceptionThe ResXResourceSet is already disposed.
InvalidOperationExceptionSafeMode is and the type of the resource is not String.

See Also