Qit


ProvidedTypesContext Type

Represents the context for which code is to be generated. Normally you should not need to use this directly.

Constructors

Constructor Description

ProvidedTypesContext(config, assemblyReplacementMap, sourceAssemblies)

Full Usage: ProvidedTypesContext(config, assemblyReplacementMap, sourceAssemblies)

Parameters:
Returns: ProvidedTypesContext
config : TypeProviderConfig
assemblyReplacementMap : (string * string) list
sourceAssemblies : Assembly list
Returns: ProvidedTypesContext

Instance members

Instance member Description

this.AddSourceAssembly

Full Usage: this.AddSourceAssembly

Parameters:

Add an assembly to the set of design-time assemblies available to use as a basis for authoring provided types

arg0 : Assembly

this.ConvertSourceExprToTarget

Full Usage: this.ConvertSourceExprToTarget

Parameters:
Returns: Expr

Returns a quotation rebuilt with resepct to the types from the target referenced assemblies. Normally this method should not be used directly when authoring a type provider.

arg0 : Expr
Returns: Expr

this.ConvertSourceProvidedTypeDefinitionToTarget

Full Usage: this.ConvertSourceProvidedTypeDefinitionToTarget

Parameters:
Returns: ProvidedTypeDefinition
arg0 : ProvidedTypeDefinition
Returns: ProvidedTypeDefinition

this.ConvertSourceTypeToTarget

Full Usage: this.ConvertSourceTypeToTarget

Parameters:
Returns: Type

Returns a type from the referenced assemblies that corresponds to the given design-time type. Normally this method should not be used directly when authoring a type provider.

arg0 : Type
Returns: Type

this.ConvertTargetTypeToSource

Full Usage: this.ConvertTargetTypeToSource

Parameters:
Returns: Type

Returns the design-time type that corresponds to the given type from the target referenced assemblies. Normally this method should not be used directly when authoring a type provider.

arg0 : Type
Returns: Type

this.FSharpCoreAssemblyVersion

Full Usage: this.FSharpCoreAssemblyVersion

Returns: Version

Try to get the version of FSharp.Core referenced. May raise an exception if FSharp.Core has not been correctly resolved

Returns: Version

this.GetSourceAssemblies

Full Usage: this.GetSourceAssemblies

Returns: Assembly[]

Get the set of design-time assemblies available to use as a basis for authoring provided types.

Returns: Assembly[]

this.GetTargetAssemblies

Full Usage: this.GetTargetAssemblies

Returns: Assembly[]

Get the resolved referenced assemblies determined by the type provider configuration

Returns: Assembly[]

this.ReadRelatedAssembly

Full Usage: this.ReadRelatedAssembly

Parameters:
    bytes : byte[]

Returns: Assembly

Read the assembly related to this context

bytes : byte[]
Returns: Assembly

this.ReadRelatedAssembly

Full Usage: this.ReadRelatedAssembly

Parameters:
    fileName : string

Returns: Assembly

Read the assembly related to this context

fileName : string
Returns: Assembly

this.TryBindAssemblyNameToTarget

Full Usage: this.TryBindAssemblyNameToTarget

Parameters:
Returns: Choice<Assembly, exn>

Try to find the given target assembly in the context

aref : AssemblyName
Returns: Choice<Assembly, exn>

this.TryBindSimpleAssemblyNameToTarget

Full Usage: this.TryBindSimpleAssemblyNameToTarget

Parameters:
    assemblyName : string

Returns: Choice<Assembly, exn>

Try to find the given target assembly in the context

assemblyName : string
Returns: Choice<Assembly, exn>