arachnode.net

UserDefinedFunctions.ExtractDirectory Method

Extracts a Windows safe Directory path from an AbsoluteUri. e.g. http://arachnode.net/sitefiles/1000/logo.gif -> http/arachnode/net/sitefiles/1000/ The maximum length for any directory returned is 200.

[SqlFunction(IsDeterministic=False, DataAccess=DataAccessKind.None, SystemDataAccess=SystemDataAccessKind.None, IsPrecise=False, Name="null", TableDefinition="null", FillRowMethodName="null")]
public static SqlString ExtractDirectory(
   SqlString baseDirectory,
   SqlString absoluteUri
);

Parameters

baseDirectory
absoluteUri

Return Value

See Also

UserDefinedFunctions Class | (global) Namespace