Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Defines an interaction used to get text input from the user.
<xs:complexType name="TextInteraction">
<xs:sequence>
<xs:element name="RegularExpression"
type="xs:string"
minOccurs="1"
maxOccurs="1"
/>
<xs:element name="ID"
type="dcmPS:ID"
minOccurs="1"
maxOccurs="1"
/>
<xs:element name="DisplayInformation"
type="dcmPS:DisplayInformation"
minOccurs="1"
maxOccurs="1"
/>
<xs:element name="ContextParameters"
type="dcmPS:Parameters"
minOccurs="1"
maxOccurs="1"
/>
<xs:element name="ExtensionPoint"
type="dcmPS:ExtensionPoint"
minOccurs="1"
maxOccurs="1"
/>
</xs:sequence>
</xs:complexType>
Child elements
| Element | Type | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ContextParameters | [dcmPS:Parameters](package-parameters-complextype.md) | Some extension points can contain substitution strings (for example, %param%). Each substitution string in the extension point is replaced with the value of the same named parameter specified in this list. |
||||||||||||||||||||
| DisplayInformation | [dcmPS:DisplayInformation](package-displayinformation-complextype.md) | The name and description of this interaction that is used in the UI. The name is used as the prompt for the text box. |
||||||||||||||||||||
| ExtensionPoint | [dcmPS:ExtensionPoint](package-extensionpoint-complextype.md) | An extension point that extends this interaction. Each extension is a child element of ExtensionPoint. The extension points are MSDT specific and are not supported by the command-line client using the [Invoke-TroubleshootingPack](invoke-troubleshootingpack-cmdlet.md) cmdlet. You can specify one or more of the following extensions (but only one of each).
|
||||||||||||||||||||
| ID | [dcmPS:ID](package-id-simpletype.md) | An identifier that identifies this interaction. |
||||||||||||||||||||
| RegularExpression | xs:string | A regular expression string that specifies the type of input that the user is allowed to enter. |
Remarks
WTP uses the regular expression syntax supported by the CAtlRegExp class found in the ATL Server Library Reference.
The MSDT client will not prevent the user from entering text that does not conform to the regular expression, but the interaction will not proceed until the user enters the text correctly. If you use a regular expression, consider using the Description node of DisplayInformation to tell the user the type of input that they can enter.
The troubleshooting engine uses the regular expression to validate the text input after it is entered. If the input is not valid, the engine returns an error to the script.
Requirements
| Minimum supported client |
Windows 7 [desktop apps only] |
| Minimum supported server |
Windows Server 2008 R2 [desktop apps only] |