This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Returns a TestId object by using the provided TestAndCategoryPair object.
Namespace:  Microsoft.VisualStudio.TestTools.Common
Assembly:  Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)
Syntax
'Declaration
Public Shared Function ToTestId ( _
    pair As TestAndCategoryPair _
) As TestId
public static TestId ToTestId(
    TestAndCategoryPair pair
)
public:
static TestId^ ToTestId(
    TestAndCategoryPair^ pair
)
static member ToTestId : 
        pair:TestAndCategoryPair -> TestId
public static function ToTestId(
    pair : TestAndCategoryPair
) : TestId
Parameters
- pair 
 Type: Microsoft.VisualStudio.TestTools.Common.TestAndCategoryPair- A TestAndCategoryPair object. 
Return Value
Type: Microsoft.VisualStudio.TestTools.Common.TestId
A test ID object.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.