Compartilhar via


ServiceHealthSectionCollection.CreateSection Método

Definição

Sobrecargas

CreateSection(String)

Cria uma seção de integridade do serviço com o título especificado e a adiciona à coleção atual.

CreateSection(String, String)

Cria uma seção de integridade do serviço com o título e a cor da tela de fundo especificados e o adiciona à coleção atual.

CreateSection(String, String, String)

Cria uma seção de integridade do serviço com o título, cor da tela de fundo e cor de primeiro plano especificados e o adiciona à coleção atual.

CreateSection(String)

Cria uma seção de integridade do serviço com o título especificado e a adiciona à 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 seção de integridade do serviço.

Retornos

ServiceHealthSection

A seção de integridade do serviço.

Exceções

title é null.

Aplica-se a

CreateSection(String, String)

Cria uma seção de integridade do serviço com o título e a cor da tela de fundo especificados e o adiciona à 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 seção de integridade do serviço.

backgroundColor
String

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

Retornos

ServiceHealthSection

A seção de integridade do serviço.

Exceções

title é null.

- ou -

backgroundcolor é null.

Aplica-se a

CreateSection(String, String, String)

Cria uma seção de integridade do serviço com o título, cor da tela de fundo e cor de primeiro plano especificados e o adiciona à 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 seção de integridade do serviço.

backgroundColor
String

Uma cadeia de caracteres de cor hexadecimal que define a cor da tela de fundo da seção.

foregroundColor
String

Uma cadeia de caracteres de cor hexadecimal que define a cor de primeiro plano da seção.

Retornos

ServiceHealthSection

A seção de integridade do serviço.

Exceções

title é null.

- ou -

backgroundcolor é null.

- ou -

foregroundcolor é null.

Aplica-se a