VisualBasicDesignerHelper.CreatePrecompiledVisualBasicReference 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.
Creates and returns a precompiled VisualBasicReference<TResult> expression.
This API supports the product infrastructure and is not intended to be used directly from your code.
public:
static System::Activities::Activity ^ CreatePrecompiledVisualBasicReference(Type ^ targetType, System::String ^ expressionText, System::Collections::Generic::IEnumerable<System::String ^> ^ namespaces, System::Collections::Generic::IEnumerable<System::String ^> ^ referencedAssemblies, System::Activities::LocationReferenceEnvironment ^ environment, [Runtime::InteropServices::Out] Type ^ % returnType, [Runtime::InteropServices::Out] System::Activities::ExpressionParser::SourceExpressionException ^ % compileError, [Runtime::InteropServices::Out] Microsoft::VisualBasic::Activities::VisualBasicSettings ^ % vbSettings);
public static System.Activities.Activity CreatePrecompiledVisualBasicReference (Type targetType, string expressionText, System.Collections.Generic.IEnumerable<string> namespaces, System.Collections.Generic.IEnumerable<string> referencedAssemblies, System.Activities.LocationReferenceEnvironment environment, out Type returnType, out System.Activities.ExpressionParser.SourceExpressionException compileError, out Microsoft.VisualBasic.Activities.VisualBasicSettings vbSettings);
static member CreatePrecompiledVisualBasicReference : Type * string * seq<string> * seq<string> * System.Activities.LocationReferenceEnvironment * Type * SourceExpressionException * VisualBasicSettings -> System.Activities.Activity
Public Shared Function CreatePrecompiledVisualBasicReference (targetType As Type, expressionText As String, namespaces As IEnumerable(Of String), referencedAssemblies As IEnumerable(Of String), environment As LocationReferenceEnvironment, ByRef returnType As Type, ByRef compileError As SourceExpressionException, ByRef vbSettings As VisualBasicSettings) As Activity
Parameters
- targetType
- Type
The expected expression type.
- expressionText
- String
The expression in Visual Basic syntax.
- namespaces
- IEnumerable<String>
The imported namespaces.
- referencedAssemblies
- IEnumerable<String>
The referenced assemblies.
- environment
- LocationReferenceEnvironment
The mechanism for resolving names to their associated Argument and Variable objects.
- returnType
- Type
When this method returns, contains the result type of the expression. This parameter is passed uninitialized.
- compileError
- SourceExpressionException
When this method returns, contains any compilation errors that occurred, or null
if compilation was successful. This parameter is passed uninitialized.
- vbSettings
- VisualBasicSettings
When this method returns, contains the settings required to compile the expression. This parameter is passed uninitialized.
Returns
The precompiled VisualBasicReference<TResult> expression.