C# 클래스 Segment.Model.Options

파일 보기 프로젝트 열기: segmentio/Analytics.NET 1 사용 예제들

공개 메소드들

메소드 설명
Options ( ) : System

Options object that allows the specification of a timestamp, an anonymousId, a context, or target integrations.

SetAnonymousId ( string anonymousId ) : Options

Sets the anonymousId of the user. This is typically a cookie session id that identifies a visitor before they have logged in.

SetContext ( Segment.Model.Context context ) : Options

Sets the context of this analytics call. Context contains information about the environment such as the app, the user agent, ip, etc ..

SetIntegration ( string integration, bool enabled ) : Options

Determines which integrations this messages goes to. new Options() .Integration("All", false) .Integration("Mixpanel", true) will send a message to only Mixpanel.

SetTimestamp ( System.DateTime timestamp ) : Options

Sets the timestamp of when an analytics call occurred. The timestamp is primarily used for historical imports or if this event happened in the past. The timestamp is not required, and if it's not provided, our servers will timestamp the call as if it just happened.

메소드 상세

Options() 공개 메소드

Options object that allows the specification of a timestamp, an anonymousId, a context, or target integrations.
public Options ( ) : System
리턴 System

SetAnonymousId() 공개 메소드

Sets the anonymousId of the user. This is typically a cookie session id that identifies a visitor before they have logged in.
public SetAnonymousId ( string anonymousId ) : Options
anonymousId string The visitor's anonymousId.
리턴 Options

SetContext() 공개 메소드

Sets the context of this analytics call. Context contains information about the environment such as the app, the user agent, ip, etc ..
public SetContext ( Segment.Model.Context context ) : Options
context Segment.Model.Context The visitor's context.
리턴 Options

SetIntegration() 공개 메소드

Determines which integrations this messages goes to. new Options() .Integration("All", false) .Integration("Mixpanel", true) will send a message to only Mixpanel.
public SetIntegration ( string integration, bool enabled ) : Options
integration string The integration name.
enabled bool If set to true, then the integration is enabled.
리턴 Options

SetTimestamp() 공개 메소드

Sets the timestamp of when an analytics call occurred. The timestamp is primarily used for historical imports or if this event happened in the past. The timestamp is not required, and if it's not provided, our servers will timestamp the call as if it just happened.
public SetTimestamp ( System.DateTime timestamp ) : Options
timestamp System.DateTime The call's timestamp.
리턴 Options