IComponentManager.TryGetComponent<T>(Guid, T) Method
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.
C#
public bool TryGetComponent<T> (Guid id, out T? component) where T : class, Microsoft.TemplateEngine.Abstractions.IIdentifiedComponent;
abstract member TryGetComponent : Guid * 'T -> bool (requires 'T : null and 'T :> Microsoft.TemplateEngine.Abstractions.IIdentifiedComponent)
Public Function TryGetComponent(Of T As {Class, IIdentifiedComponent}) (id As Guid, ByRef component As T) As Boolean
- T
type to lookup.
- component
- T
singleton instance of requested component.
true
if component was found.
If T
and Guid mismatch, false
is returned.
Producto | Versiones |
---|---|
Template Engine | 6.0.100, 7.0.100 |