Udostępnij za pośrednictwem


Facades.GetFacade<TFacade> Method (ModelElement)

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

For the given layer element, this method returns the requested facade object to represent the passed in layer element

Namespace:  Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer.Internal
Assembly:  Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer.dll)

Syntax

'Declaration
Public Shared Function GetFacade(Of TFacade As {Class, ILayerElement}) ( _
    element As ModelElement _
) As TFacade
public static TFacade GetFacade<TFacade>(
    ModelElement element
)
where TFacade : class, ILayerElement
public:
generic<typename TFacade>
where TFacade : ref class, ILayerElement
static TFacade GetFacade(
    ModelElement^ element
)
static member GetFacade : 
        element:ModelElement -> 'TFacade  when 'TFacade : not struct and ILayerElement
JScript does not support generic types or methods.

Type Parameters

  • TFacade
    type of Facade object to be created

Parameters

Return Value

Type: TFacade
The requested TFacade object.

.NET Framework Security

See Also

Reference

Facades Class

GetFacade Overload

Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer.Internal Namespace