Method | Description | |
---|---|---|
Expand ( ) : string |
Validates that the given resource IDs are valid for this template, and returns a string representation This is equivalent to calling This method assumes no service name is required. Call ExpandWithService to specify a service name. |
|
ExpandWithService ( string serviceName ) : string |
Validates that the given resource IDs are valid for this template, and returns a string representation
|
|
ParseName ( string name ) : |
Attempts to parse the given resource name against this template, throwing ArgumentException on failure.
|
|
PathTemplate ( string template ) : System |
Constructs a template from its textual representation, such as
|
|
ToString ( ) : string |
Returns the textual representation of this template.
|
|
TryParseName ( string name, ResourceName &result ) : bool |
Attempts to parse the given resource name against this template, returning Although this method returns |
Method | Description | |
---|---|---|
ReplaceParameters ( string serviceName, string resourceIds ) : string |
Returns a string representation of the template with parameters replaced by resource IDs.
|
|
TryParseNameInternal ( string name, ResourceName &result ) : string |
Implementation of parsing, returning the error message for a FormatException if parsing fails.
|
|
ValidateResourceId ( int index, string resourceId ) : void |
Validate a single value from a sequence. This is used in both parsing and instantiating.
|
|
ValidateResourceIds ( string resourceIds ) : void |
Validates a whole array of resource IDs, including that the count matches.
|
|
ValidateServiceName ( string serviceName, string parameterName ) : void |
Validates a service name, ensuring it is not empty and doesn't contain any slashes. (In the future, we may want to make this stricter, e.g. that it's a valid DNS-like name.)
|
public ExpandWithService ( string serviceName ) : string | ||
serviceName | string | The service name, which may be null. |
return | string |
public ParseName ( string name ) : |
||
name | string | The resource name to parse against this template. Must not be null. |
return |
public PathTemplate ( string template ) : System | ||
template | string | The textual representation of the template. Must not be null. |
return | System |
public TryParseName ( string name, ResourceName &result ) : bool | ||
name | string | The resource name to parse against this template. Must not be null. |
result | ResourceName | When this method returns, the parsed resource name or |
return | bool |