VirtualFileBase.Name Property

Definition

Gets the display name of the virtual resource.

C#
public virtual string Name { get; }

Property Value

The display name of the virtual file.

Remarks

The Name property is typically the file name and extension associated with the resource, although virtual resources may use arbitrary names.

Notes to Inheritors

The Name property should return the correct casing of the virtual resource for the virtual path provider. The correct casing may be different from the casing in the original path.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also