Path::GetExtension Method
Silverlight
When it is called by trusted applications, returns the extension of the specified path string.
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Parameters
- path
- Type: System::String
The path string from which to get the extension.
Return Value
Type: System::StringA String containing the extension of the specified path (including the "."), nullptr, or Empty. If path is nullptr, GetExtension returns nullptr. If path does not have extension information, GetExtension returns Empty.
| Exception | Condition |
|---|---|
| ArgumentException | path contains one or more of the invalid characters defined in GetInvalidPathChars. |
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Community Additions
ADD
Show: