DocumentationContextBuilder<TContext>.WithBaseUrl Method
- Namespace
- Kampute.DocToolkit
- Assembly
- Kampute.DocToolkit.dll
| DocumentationContextBuilder<TContext>.WithBaseUrl(string) | Sets the base URL for documentation links. |
| DocumentationContextBuilder<TContext>.WithBaseUrl(Uri) | Sets the base URL for documentation links. |
DocumentationContextBuilder<TContext>.WithBaseUrl(string)
Sets the base URL for documentation links.
public virtual DocumentationContextBuilder<TContext> WithBaseUrl(string baseUrl)Parameters
Returns
- DocumentationContextBuilder<TContext>
- The current builder instance for method chaining.
Exceptions
- ArgumentException
- Thrown when
baseUrlisnull, empty, or whitespace. - UriFormatException
- Thrown when
baseUrlis not a valid absolute URI.
DocumentationContextBuilder<TContext>.WithBaseUrl(Uri)
Sets the base URL for documentation links.
public virtual DocumentationContextBuilder<TContext> WithBaseUrl(Uri baseUrl)Parameters
Returns
- DocumentationContextBuilder<TContext>
- The current builder instance for method chaining.
Exceptions
- ArgumentNullException
- Thrown when
baseUrlisnull. - ArgumentException
- Thrown when
baseUrlis not an absolute URI.
