Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Microsoft.​Extensions.​Configuration.​ConfigurationPath

Assembly: Microsoft.Extensions.Configuration.Abstractions

Inheritance: object → ConfigurationPath

Provides utility methods and constants for manipulating Configuration paths.

Fields and Constants

public static readonly string
KeyDelimiter
The delimiter ":" used to separate individual keys in a path.

Methods

public static string
Combine​(System.​Collections.​Generic.​IEnumerable<​string> pathSegments)
Combines path segments into one path.
Returns The combined path.
pathSegments The path segments to combine.
public static string
Combine​(string[] pathSegments)
Combines path segments into one path.
Returns The combined path.
pathSegments The path segments to combine.
public static string
GetParentPath​(string path)
Extracts the path corresponding to the parent node for a given path.
Returns The original path minus the last individual segment found in it. Null if the original path corresponds to a top level node.
path The path.
public static string
GetSectionKey​(string path)
Extracts the last path segment from the path.
Returns The last path segment of the path.
path The path.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object