語言

BotState.CreateProperty<T>(String) 方法

定義

在 的 BotState 範圍內建立一個命名的狀態屬性,並回傳該屬性的存取器。

public Microsoft.Bot.Builder.IStatePropertyAccessor<T> CreateProperty<T>(string name);
abstract member CreateProperty : string -> Microsoft.Bot.Builder.IStatePropertyAccessor<'T>
override this.CreateProperty : string -> Microsoft.Bot.Builder.IStatePropertyAccessor<'T>
Public Function CreateProperty(Of T) (name As String) As IStatePropertyAccessor(Of T)

類型參數

T

房產的價值類型。

參數

name
String

屬性的名稱。

傳回

屬性的存取子。

實作

例外狀況

name 是 null。

適用於