FSharp.TypeProviders.SDK


ProvidedTypesContext Type

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

Instance members

Instance member Description

this.AddSourceAssembly(arg1)

Full Usage: this.AddSourceAssembly(arg1)

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(arg1)

Full Usage: this.ConvertSourceExprToTarget(arg1)

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.ConvertSourceTypeToTarget(arg1)

Full Usage: this.ConvertSourceTypeToTarget(arg1)

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(arg1)

Full Usage: this.ConvertTargetTypeToSource(arg1)

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(bytes)

Full Usage: this.ReadRelatedAssembly(bytes)

Parameters:
    bytes : byte[]

Returns: Assembly

Read the assembly related to this context

bytes : byte[]
Returns: Assembly

this.ReadRelatedAssembly(fileName)

Full Usage: this.ReadRelatedAssembly(fileName)

Parameters:
    fileName : string

Returns: Assembly

Read the assembly related to this context

fileName : string
Returns: Assembly

this.TryBindAssemblyNameToTarget(aref)

Full Usage: this.TryBindAssemblyNameToTarget(aref)

Parameters:
Returns: Choice<Assembly, exn>

Try to find the given target assembly in the context

aref : AssemblyName
Returns: Choice<Assembly, exn>

this.TryBindSimpleAssemblyNameToTarget(assemblyName)

Full Usage: this.TryBindSimpleAssemblyNameToTarget(assemblyName)

Parameters:
    assemblyName : string

Returns: Choice<Assembly, exn>

Try to find the given target assembly in the context

assemblyName : string
Returns: Choice<Assembly, exn>