DataCollection.CurrentId – vlastnost
Pseudo-token id podprocesu nebo id procesu vrátí vlastnost Locations volání NameProfile, StartProfile, StopProfile, SuspendProfile a ResumeProfile.Vlastnost způsobit provozovat aktuálního podprocesu nebo procesu, nikoli konkrétně uvedena jedna metoda.
Obor názvů: Microsoft.VisualStudio.Profiler
Sestavení: Microsoft.VisualStudio.Profiler (v Microsoft.VisualStudio.Profiler.dll)
Syntaxe
'Deklarace
Public Shared ReadOnly Property CurrentId As UInteger
public static uint CurrentId { get; }
public:
static property unsigned int CurrentId {
unsigned int get ();
}
static member CurrentId : uint32
static function get CurrentId () : uint
Hodnota vlastnosti
Typ: System.UInt32
Celé číslo bez znaménka hodnota identifikátoru proces nebo podproces.
Příklady
Následující příklad kódu ukazuje vlastnost Locations.Locations je předán jako parametr ve volání DataCollection.NameProfile k identifikaci aktuální identifikátor podprocesu.
public void ExerciseCommentMarkAtProfile()
{
// Declare and initalize variables to pass to
// CommentMarkAtProfile. The values of these
// parameters are assigned based on the needs
// of the code; and for the sake of simplicity
// in this example, the variables are assigned
// arbitrary values.
long timestamp = 0x1111;
int markId = 01;
string markText = "Exercising CommentMarkAtProfile...";
// Declare MarkOperationResult Enumerator.
// Holds return value from call to CommentMarkAtProfile.
MarkOperationResult markResult;
markResult = DataCollection.CommentMarkAtProfile(
timestamp,
markId,
markText);
// Check result of CommentMarkAtProfile call.
Console.WriteLine("CommentMarkAtProfile returned {0}",
markResult);
}
Zabezpečení rozhraní .NET Framework
- Plná důvěra přímému volajícímu. Částečně zabezpečený kód nemůže tento člen použít. Další informace naleznete v tématu Používání knihoven z částečně důvěryhodného kódu.