ServiceHealthSectionCollection.CreateSection Método

Definição

Sobrecargas

Name Description
CreateSection(String)

Cria uma secção de saúde do serviço com o título especificado e adiciona-a à coleção atual.

CreateSection(String, String)

Cria uma secção de saúde do serviço com o título e a cor de fundo especificados, e adiciona-a à coleção atual.

CreateSection(String, String, String)

Cria uma secção de saúde do serviço com o título especificado, cor de fundo e cor de primeiro plano, e adiciona-a à coleção atual.

CreateSection(String)

Cria uma secção de saúde do serviço com o título especificado e adiciona-a à coleção atual.

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

Parâmetros

title
String

O título da secção de saúde do serviço.

Devoluções

A secção de saúde do serviço.

Exceções

title é null.

Aplica-se a

CreateSection(String, String)

Cria uma secção de saúde do serviço com o título e a cor de fundo especificados, e adiciona-a à coleção atual.

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

Parâmetros

title
String

O título da secção de saúde do serviço.

backgroundColor
String

Uma cadeia de cor hexadecimal que define a cor de fundo do serviço.

Devoluções

A secção de saúde do serviço.

Exceções

title é null.

-ou-

backgroundcolor é null.

Aplica-se a

CreateSection(String, String, String)

Cria uma secção de saúde do serviço com o título especificado, cor de fundo e cor de primeiro plano, e adiciona-a à coleção atual.

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

Parâmetros

title
String

O título da secção de saúde do serviço.

backgroundColor
String

Uma cadeia de cor hexadecimal que define a cor de fundo da secção.

foregroundColor
String

Uma cadeia de cor hexadecimal que define a cor em primeiro plano da secção.

Devoluções

A secção de saúde do serviço.

Exceções

title é null.

-ou-

backgroundcolor é null.

-ou-

foregroundcolor é null.

Aplica-se a