你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
AppliesToHelper.TryParseAppliesTo(String, AppliesTo) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Tries to parse a user-input text to an AppliesTo enum.
public static bool TryParseAppliesTo(string text, out Microsoft.Azure.PowerShell.Common.Config.AppliesTo appliesTo);
static member TryParseAppliesTo : string * AppliesTo -> bool
Public Shared Function TryParseAppliesTo (text As String, ByRef appliesTo As AppliesTo) As Boolean
Parameters
- text
- String
Input from user.
- appliesTo
- AppliesTo
Result if successful.
Returns
True if parsed successfully.