Share via


ContentProcessorContext.Convert Generic Method (TInput, String)

Note

This generic method is available only when developing for Windows.

Converts a content item object using the specified content processor.

Syntax

'Declaration
Public Function Convert(Of TInput, TOutput) ( _
         input As TInput, _
         processorName As String _
) As TOutput 
public TOutput Convert<TInput,TOutput> (
         TInput input,
         string processorName
)
public:
generic<typename TInput, typename TOutput>
TOutput Convert(
         TInput input,
         String processorName
)

Type Parameters

  • TInput
    Type of the input content.
  • TOutput
    Type of the converted output.

Parameters

  • input
    Type: TInput
    Source content to be converted.
  • processorName
    Type: String
    Optional processor for this content.

Return Value

Type: TOutput
Reference of the final converted content.

Requirements

Namespace: Microsoft.Xna.Framework.Content.Pipeline

Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)

See Also

Reference

ContentProcessorContext Class
ContentProcessorContext Members
Microsoft.Xna.Framework.Content.Pipeline Namespace

Platforms

Windows 7, Windows Vista, Windows XP