Share via


TurnContextStateCollection 클래스

정의

턴의 수명 동안 유지되는 값은 의 일부로 유지됩니다 ITurnContext.

public class TurnContextStateCollection : System.Collections.Generic.Dictionary<string,object>, IDisposable
type TurnContextStateCollection = class
    inherit Dictionary<string, obj>
    interface IDisposable
Public Class TurnContextStateCollection
Inherits Dictionary(Of String, Object)
Implements IDisposable
상속
TurnContextStateCollection
구현

설명

여기에 저장되는 일반적인 값은 IStorage, BotState, ConversationState, ILanguageGenerator, ResourceExplorer 등과 같은 턴의 수명 동안 필요한 개체입니다.

생성자

TurnContextStateCollection()

TurnContextStateCollection 클래스의 새 인스턴스를 초기화합니다.

메서드

Add<T>(String, T)

턴의 컨텍스트에 값을 추가합니다.

Add<T>(T)

턴의 컨텍스트에 값을 추가합니다.

Dispose()

관리되지 않는 리소스의 확보, 해제 또는 다시 설정과 관련된 애플리케이션 정의 작업을 수행합니다.

Dispose(Boolean)

삭제 매개 변수가 true로 설정된 경우 리소스를 해제합니다.

Get<T>()

턴의 컨텍스트에서 형식별 기본값을 가져옵니다.

Get<T>(String)

턴의 컨텍스트에서 이름으로 캐시된 값을 가져옵니다.

Set<T>(String, T)

값을 턴의 컨텍스트로 설정합니다.

Set<T>(T)

값을 턴의 컨텍스트로 설정합니다.

적용 대상