ProvisioningExtensions.GetSingleResourceInScope<T>(IConstruct) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the single resource of type T
in the construct or its childresources.
public static T? GetSingleResourceInScope<T> (this Azure.Provisioning.IConstruct construct) where T : Azure.Provisioning.Resource;
static member GetSingleResourceInScope : Azure.Provisioning.IConstruct -> 'T (requires 'T :> Azure.Provisioning.Resource)
<Extension()>
Public Function GetSingleResourceInScope(Of T As Resource) (construct As IConstruct) As T
Type Parameters
- T
The type of Resource to find.
Parameters
- construct
- IConstruct
The construct.
Returns
T
The Resource if found else null.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET