Udostępnij za pośrednictwem


ActivationConstraint.ClientContext(ClientContextKey, String) Method

Definition

Creates an activation constraint that is true when the provided client context key matches the regex pattern provided.

public static Microsoft.VisualStudio.Extensibility.ActivationConstraint ClientContext (Microsoft.VisualStudio.Extensibility.ClientContextKey key, string regexPattern);
static member ClientContext : Microsoft.VisualStudio.Extensibility.ClientContextKey * string -> Microsoft.VisualStudio.Extensibility.ActivationConstraint
Public Shared Function ClientContext (key As ClientContextKey, regexPattern As String) As ActivationConstraint

Parameters

key
ClientContextKey

The client context key.

regexPattern
String

The regex pattern to match.

Returns

A constraint that is true when the provided client context key matches the regex pattern provided.

Applies to