TemplateBindingExtensions.CreateSubstitution Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Create a template parameter substitution from the given formal to the given actual on given template binding.
Namespace: Microsoft.VisualStudio.Uml.Extensions
Assembly: Microsoft.VisualStudio.Uml.Extensions (in Microsoft.VisualStudio.Uml.Extensions.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function CreateSubstitution ( _
binding As ITemplateBinding, _
formal As ITemplateParameter, _
actual As IParameterableElement _
) As ITemplateParameterSubstitution
'Usage
Dim binding As ITemplateBinding
Dim formal As ITemplateParameter
Dim actual As IParameterableElement
Dim returnValue As ITemplateParameterSubstitution
returnValue = binding.CreateSubstitution(formal, _
actual)
public static ITemplateParameterSubstitution CreateSubstitution(
this ITemplateBinding binding,
ITemplateParameter formal,
IParameterableElement actual
)
[ExtensionAttribute]
public:
static ITemplateParameterSubstitution^ CreateSubstitution(
ITemplateBinding^ binding,
ITemplateParameter^ formal,
IParameterableElement^ actual
)
static member CreateSubstitution :
binding:ITemplateBinding *
formal:ITemplateParameter *
actual:IParameterableElement -> ITemplateParameterSubstitution
public static function CreateSubstitution(
binding : ITemplateBinding,
formal : ITemplateParameter,
actual : IParameterableElement
) : ITemplateParameterSubstitution
Parameters
- binding
Type: Microsoft.VisualStudio.Uml.AuxiliaryConstructs.ITemplateBinding
The binding between the owner of formal and actual
- formal
Type: Microsoft.VisualStudio.Uml.AuxiliaryConstructs.ITemplateParameter
The instance to be used in the template parameter actual
- actual
Type: Microsoft.VisualStudio.Uml.AuxiliaryConstructs.IParameterableElement
The template parameter that will received the parameteable instance formal
Return Value
Type: Microsoft.VisualStudio.Uml.AuxiliaryConstructs.ITemplateParameterSubstitution
A newly created ITemplateParameterSubstitution
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type ITemplateBinding. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
TemplateBindingExtensions Class