ComponentUtilitiesToWebsiteOrZipFilePath Method
This is used to ensure that a forward slash is used to separate the parts of a website or zip file
item path.
Namespace: Sandcastle.CoreAssembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2025.9.30.0
public static string ToWebsiteOrZipFilePath(
this string path
)
<ExtensionAttribute>
Public Shared Function ToWebsiteOrZipFilePath (
path As String
) As String
public:
[ExtensionAttribute]
static String^ ToWebsiteOrZipFilePath(
String^ path
)
[<ExtensionAttribute>]
static member ToWebsiteOrZipFilePath :
path : string -> string
- path String
- The file path to check
StringThe file path with the directory separators corrected if necessaryIn Visual Basic and C#, you can call this method as an instance method on any object of type
String. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
This ensures proper website and zip file item paths regardless of the current operating system