Share via


ServiceHealthSectionCollection.CreateSection 方法

定義

多載

CreateSection(String)

建立指定標題的服務健全狀況區段,並將它新增至目前集合。

CreateSection(String, String)

建立指定標題和背景色彩的服務健全狀況區段,並將它新增至目前集合。

CreateSection(String, String, String)

建立指定標題、背景色彩和前景色彩的服務健全狀況區段,並將它新增至目前集合。

CreateSection(String)

建立指定標題的服務健全狀況區段,並將它新增至目前集合。

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

參數

title
String

服務健全狀況區段的標題。

傳回

服務健全狀況區段。

例外狀況

titlenull

適用於

CreateSection(String, String)

建立指定標題和背景色彩的服務健全狀況區段,並將它新增至目前集合。

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

參數

title
String

服務健全狀況區段的標題。

backgroundColor
String

定義服務背景色彩的十六進位色彩字串。

傳回

服務健全狀況區段。

例外狀況

titlenull

-或-

backgroundcolornull

適用於

CreateSection(String, String, String)

建立指定標題、背景色彩和前景色彩的服務健全狀況區段,並將它新增至目前集合。

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

參數

title
String

服務健全狀況區段的標題。

backgroundColor
String

定義區段背景色彩的十六進位色彩字串。

foregroundColor
String

定義區段前景色彩的十六進位色彩字串。

傳回

服務健全狀況區段。

例外狀況

titlenull

-或-

backgroundcolornull

-或-

foregroundcolornull

適用於