語言

ServiceHealthSectionCollection.CreateSection 方法

定義

多載

名稱 Description
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

服務健康部門的標題。

傳回

服務健康部門。

例外狀況

title 是 null。

適用於

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

一個十六進位顏色串,用來定義服務的背景色。

傳回

服務健康部門。

例外狀況

title 是 null。

-或-

backgroundcolor 是 null。

適用於

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

一個十六進位顏色串,用來定義該區段的前景色。

傳回

服務健康部門。

例外狀況

title 是 null。

-或-

backgroundcolor 是 null。

-或-

foregroundcolor 是 null。

適用於