Språk

ServiceHealthSectionCollection.CreateSection Metod

Definition

Överlagringar

Name Description
CreateSection(String)

Skapar ett service health-avsnitt med den angivna rubriken och lägger till den i den aktuella samlingen.

CreateSection(String, String)

Skapar ett tjänsthälsoavsnitt med den angivna rubriken och bakgrundsfärgen och lägger till det i den aktuella samlingen.

CreateSection(String, String, String)

Skapar ett tjänsthälsoavsnitt med den angivna rubriken, bakgrundsfärgen och förgrundsfärgen och lägger till den i den aktuella samlingen.

CreateSection(String)

Skapar ett service health-avsnitt med den angivna rubriken och lägger till den i den aktuella samlingen.

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

Parametrar

title
String

Rubriken för avsnittet tjänsthälsa.

Returer

Avsnittet tjänsthälsa.

Undantag

title är null.

Gäller för

CreateSection(String, String)

Skapar ett tjänsthälsoavsnitt med den angivna rubriken och bakgrundsfärgen och lägger till det i den aktuella samlingen.

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

Parametrar

title
String

Rubriken för avsnittet tjänsthälsa.

backgroundColor
String

En hexadecimal färgsträng som definierar tjänstens bakgrundsfärg.

Returer

Avsnittet tjänsthälsa.

Undantag

title är null.

-eller-

backgroundcolor är null.

Gäller för

CreateSection(String, String, String)

Skapar ett tjänsthälsoavsnitt med den angivna rubriken, bakgrundsfärgen och förgrundsfärgen och lägger till den i den aktuella samlingen.

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

Parametrar

title
String

Rubriken för avsnittet tjänsthälsa.

backgroundColor
String

En hexadecimal färgsträng som definierar bakgrundsfärgen för avsnittet.

foregroundColor
String

En hexadecimal färgsträng som definierar förgrundsfärgen för avsnittet.

Returer

Avsnittet tjänsthälsa.

Undantag

title är null.

-eller-

backgroundcolor är null.

-eller-

foregroundcolor är null.

Gäller för