ServiceHealthSectionCollection.CreateSection Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.