ResXResourceSetGetString(String, Boolean) 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,
	bool ignoreCase
)

Parameters

name  String
Name of the resource to search for.
ignoreCase  Boolean
Indicates whether the case of the specified name should be ignored.

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.

Implements

IExpandoResourceSetGetString(String, Boolean)

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