Explicit Operator

Microsoft Deployment Tools

Deployment Tools Foundation Explicit Operator
Deployment Tools Foundation NamespacesMicrosoft.Deployment.ResourcesResourceTypeExplicit(ResourceType)
Explicitly converts a ResourceType to a string.
Declaration Syntax
C# Visual Basic Visual C++
public static explicit operator string (
	ResourceType resourceType
)
Public Shared Narrowing Operator CType ( _
	resourceType As ResourceType _
) As String
static explicit operator String^ (
	ResourceType^ resourceType
)
Parameters
resourceType (ResourceType)
ResourceType object to convert.
Return Value
The resource type string.
Remarks
Unlike ToString()()(), this conversion does not return the common name of well-known integer resource types. Therefore, the returned string is suitable for passing directly to Win32 resource APIs that accept resource type strings.

Assembly: Microsoft.Deployment.Resources (Module: Microsoft.Deployment.Resources) Version: 3.0.0.0 (3.5.1623.0)