Partager via


ServiceHealthSectionCollection.CreateSection Méthode

Définition

Surcharges

CreateSection(String)

Crée une section d’intégrité du service avec le titre spécifié, et l’ajoute à la collection actuelle.

CreateSection(String, String)

Crée une section d’intégrité du service avec le titre et la couleur d’arrière-plan spécifiés, et l’ajoute à la collection actuelle.

CreateSection(String, String, String)

Crée une section d’intégrité du service avec le titre, la couleur d’arrière-plan et la couleur de premier plan spécifiés, et l’ajoute à la collection actuelle.

CreateSection(String)

Crée une section d’intégrité du service avec le titre spécifié, et l’ajoute à la collection actuelle.

public:
 System::ServiceModel::Description::ServiceHealthSection ^ CreateSection(System::String ^ title);
public System.ServiceModel.Description.ServiceHealthSection CreateSection (string title);
member this.CreateSection : string -> System.ServiceModel.Description.ServiceHealthSection
Public Function CreateSection (title As String) As ServiceHealthSection

Paramètres

title
String

Titre de la section d’intégrité du service.

Retours

Section d’intégrité du service.

Exceptions

title a la valeur null.

S’applique à

CreateSection(String, String)

Crée une section d’intégrité du service avec le titre et la couleur d’arrière-plan spécifiés, et l’ajoute à la collection actuelle.

public:
 System::ServiceModel::Description::ServiceHealthSection ^ CreateSection(System::String ^ title, System::String ^ backgroundColor);
public System.ServiceModel.Description.ServiceHealthSection CreateSection (string title, string backgroundColor);
member this.CreateSection : string * string -> System.ServiceModel.Description.ServiceHealthSection
Public Function CreateSection (title As String, backgroundColor As String) As ServiceHealthSection

Paramètres

title
String

Titre de la section d’intégrité du service.

backgroundColor
String

Chaîne de couleur hexadécimale qui définit la couleur d’arrière-plan du service.

Retours

Section d’intégrité du service.

Exceptions

title a la valeur null.

-ou-

backgroundcolor a la valeur null.

S’applique à

CreateSection(String, String, String)

Crée une section d’intégrité du service avec le titre, la couleur d’arrière-plan et la couleur de premier plan spécifiés, et l’ajoute à la collection actuelle.

public:
 System::ServiceModel::Description::ServiceHealthSection ^ CreateSection(System::String ^ title, System::String ^ backgroundColor, System::String ^ foregroundColor);
public System.ServiceModel.Description.ServiceHealthSection CreateSection (string title, string backgroundColor, string foregroundColor);
member this.CreateSection : string * string * string -> System.ServiceModel.Description.ServiceHealthSection
Public Function CreateSection (title As String, backgroundColor As String, foregroundColor As String) As ServiceHealthSection

Paramètres

title
String

Titre de la section d’intégrité du service.

backgroundColor
String

Chaîne de couleur hexadécimale qui définit la couleur d’arrière-plan de la section.

foregroundColor
String

Chaîne de couleur hexadécimale qui définit la couleur de premier plan de la section.

Retours

Section d’intégrité du service.

Exceptions

title a la valeur null.

-ou-

backgroundcolor a la valeur null.

-ou-

foregroundcolor a la valeur null.

S’applique à