Edytuj

Udostępnij za pośrednictwem


ServiceHealthSectionCollection.CreateSection Method

Definition

Overloads

CreateSection(String)

Creates a service health section with the specified title and adds it to the current collection.

CreateSection(String, String)

Creates a service health section with the specified title and background color, and adds it to the current collection.

CreateSection(String, String, String)

Creates a service health section with the specified title, background color, and foreground color, and adds it to the current collection.

CreateSection(String)

Creates a service health section with the specified title and adds it to the current collection.

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

Parameters

title
String

The title of the service health section.

Returns

The service health section.

Exceptions

title is null.

Applies to

CreateSection(String, String)

Creates a service health section with the specified title and background color, and adds it to the current collection.

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

Parameters

title
String

The title of the service health section.

backgroundColor
String

A hexadecimal color string that defines the background color of the service.

Returns

The service health section.

Exceptions

title is null.

-or-

backgroundcolor is null.

Applies to

CreateSection(String, String, String)

Creates a service health section with the specified title, background color, and foreground color, and adds it to the current collection.

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

Parameters

title
String

The title of the service health section.

backgroundColor
String

A hexadecimal color string that defines the background color of the section.

foregroundColor
String

A hexadecimal color string that defines the foreground color of the section.

Returns

The service health section.

Exceptions

title is null.

-or-

backgroundcolor is null.

-or-

foregroundcolor is null.

Applies to