Shell32GetFileAssociation Method |
Gets the file or protocol that is associated with path from the registry.
Namespace: Alphaleonis.Win32.FilesystemAssembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static string GetFileAssociation(
string path
)
Public Shared Function GetFileAssociation (
path As String
) As String
public:
static String^ GetFileAssociation(
String^ path
)
static member GetFileAssociation :
path : string -> string
Parameters
- path
- Type: SystemString
A path to the file.
Return Value
Type:
StringReturns the associated file- or protocol-related string from the registry or
string.Empty if no association can be found.
See Also