Sdílet prostřednictvím


ServiceHealthSectionCollection.CreateSection Metoda

Definice

Přetížení

CreateSection(String)

Vytvoří oddíl služby Service Health se zadaným názvem a přidá ho do aktuální kolekce.

CreateSection(String, String)

Vytvoří oddíl služby Service Health se zadaným názvem a barvou pozadí a přidá ho do aktuální kolekce.

CreateSection(String, String, String)

Vytvoří oddíl stavu služby se zadaným názvem, barvou pozadí a barvou popředí a přidá ho do aktuální kolekce.

CreateSection(String)

Vytvoří oddíl služby Service Health se zadaným názvem a přidá ho do aktuální kolekce.

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

Parametry

title
String

Název oddílu service health.

Návraty

Část service health

Výjimky

title je null.

Platí pro

CreateSection(String, String)

Vytvoří oddíl služby Service Health se zadaným názvem a barvou pozadí a přidá ho do aktuální kolekce.

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

Parametry

title
String

Název oddílu service health.

backgroundColor
String

Šestnáctkový řetězec barvy, který definuje barvu pozadí služby.

Návraty

Část service health

Výjimky

title je null.

-nebo-

backgroundcolor je null.

Platí pro

CreateSection(String, String, String)

Vytvoří oddíl stavu služby se zadaným názvem, barvou pozadí a barvou popředí a přidá ho do aktuální kolekce.

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

Parametry

title
String

Název oddílu service health.

backgroundColor
String

Hexadecimální řetězec barvy, který definuje barvu pozadí oddílu.

foregroundColor
String

Hexadecimální řetězec barvy, který definuje barvu popředí oddílu.

Návraty

Část service health

Výjimky

title je null.

-nebo-

backgroundcolor je null.

-nebo-

foregroundcolor je null.

Platí pro