ResourceMarkerResolveText Method |
Detects if a string value is specified as a resource id,
and if so, and a
ResourceManager is defined,
returns the resource value.
If the value starts with "$$" the remaining portion of the
string is used as the resource id.
If the value starts with "$$$" the remaining portion of the
string is appended to the resourceIdPrefix value, and then
used as the resource id.
If a ResourceManager isn't available, the original value will
always be returned.
If a ResourceManager is available and the value starts with "$$"
and but no resource exists with the id, then null or an empty string
is returned.
Namespace:
MFiles.VAF.Configuration
Assembly:
MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 21.8.10524.1
Syntaxpublic static string ResolveText(
string value,
string prefix = "",
ResourceManager resources = null
)
Public Shared Function ResolveText (
value As String,
Optional prefix As String = "",
Optional resources As ResourceManager = Nothing
) As String
public:
static String^ ResolveText(
String^ value,
String^ prefix = L"",
ResourceManager^ resources = nullptr
)
Parameters
- value
- Type: SystemString
The raw string value which may be a literal or may refer to a resource. - prefix (Optional)
- Type: SystemString
The resource prefix value. - resources (Optional)
- Type: System.ResourcesResourceManager
Manager that resources can be resolved from.
Return Value
Type:
StringString value.
See Also