ColorTypeConverter.SerializeColorContext Méthode

Définition

Sérialise un ColorContext dans le package XPS (XML Paper Specification) et retourne son URI (Uniform Resource Identifier) sous la forme d’une chaîne.

public:
 static System::String ^ SerializeColorContext(IServiceProvider ^ context, System::Windows::Media::ColorContext ^ colorContext);
public static string SerializeColorContext (IServiceProvider context, System.Windows.Media.ColorContext colorContext);
static member SerializeColorContext : IServiceProvider * System.Windows.Media.ColorContext -> string
Public Shared Function SerializeColorContext (context As IServiceProvider, colorContext As ColorContext) As String

Paramètres

context
IServiceProvider

Objet qui fournit des informations contextuelles.

colorContext
ColorContext

Objet à sérialiser.

Retours

String qui représente l’URI du contexte de couleur.

Exceptions

Le colorContext est null.

S’applique à

Voir aussi