共用方式為


CodeTransparencyClient.GetEntryIds Method

Definition

Overloads

GetEntryIds(Nullable<Int64>, Nullable<Int64>, RequestContext)

[Protocol Method] Historical query to get a list of entries of a given range

GetEntryIds(Nullable<Int64>, Nullable<Int64>, CancellationToken)

Historical query to get a list of entries of a given range.

GetEntryIds(Nullable<Int64>, Nullable<Int64>, RequestContext)

Source:
CodeTransparencyClient.cs

[Protocol Method] Historical query to get a list of entries of a given range

public virtual Azure.Pageable<BinaryData> GetEntryIds (long? from, long? to, Azure.RequestContext context);
abstract member GetEntryIds : Nullable<int64> * Nullable<int64> * Azure.RequestContext -> Azure.Pageable<BinaryData>
override this.GetEntryIds : Nullable<int64> * Nullable<int64> * Azure.RequestContext -> Azure.Pageable<BinaryData>
Public Overridable Function GetEntryIds (from As Nullable(Of Long), to As Nullable(Of Long), context As RequestContext) As Pageable(Of BinaryData)

Parameters

from
Nullable<Int64>

Starting Transaction Id.

to
Nullable<Int64>

Ending Transaction Id.

context
RequestContext

The request context, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The Pageable<T> from the service containing a list of BinaryData objects. Details of the body schema for each item in the collection are in the Remarks section below.

Exceptions

Service returned a non-success status code.

Examples

This sample shows how to call GetEntryIds and parse the result.

Uri endpoint = new Uri("<https://my-service.azure.com>");
AzureKeyCredential credential = new AzureKeyCredential("<key>");
CodeTransparencyClient client = new CodeTransparencyClient(endpoint, credential);

foreach (BinaryData item in client.GetEntryIds(null, null, null))
{
    JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
    Console.WriteLine(result.ToString());
}

This sample shows how to call GetEntryIds with all parameters and parse the result.

Uri endpoint = new Uri("<https://my-service.azure.com>");
AzureKeyCredential credential = new AzureKeyCredential("<key>");
CodeTransparencyClient client = new CodeTransparencyClient(endpoint, credential);

foreach (BinaryData item in client.GetEntryIds(1234L, 1234L, null))
{
    JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
    Console.WriteLine(result.ToString());
}

Applies to

GetEntryIds(Nullable<Int64>, Nullable<Int64>, CancellationToken)

Source:
CodeTransparencyClient.cs

Historical query to get a list of entries of a given range.

public virtual Azure.Pageable<string> GetEntryIds (long? from = default, long? to = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetEntryIds : Nullable<int64> * Nullable<int64> * System.Threading.CancellationToken -> Azure.Pageable<string>
override this.GetEntryIds : Nullable<int64> * Nullable<int64> * System.Threading.CancellationToken -> Azure.Pageable<string>
Public Overridable Function GetEntryIds (Optional from As Nullable(Of Long) = Nothing, Optional to As Nullable(Of Long) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of String)

Parameters

from
Nullable<Int64>

Starting Transaction Id.

to
Nullable<Int64>

Ending Transaction Id.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Examples

This sample shows how to call GetEntryIds.

Uri endpoint = new Uri("<https://my-service.azure.com>");
AzureKeyCredential credential = new AzureKeyCredential("<key>");
CodeTransparencyClient client = new CodeTransparencyClient(endpoint, credential);

foreach (string item in client.GetEntryIds())
{
}

This sample shows how to call GetEntryIds with all parameters.

Uri endpoint = new Uri("<https://my-service.azure.com>");
AzureKeyCredential credential = new AzureKeyCredential("<key>");
CodeTransparencyClient client = new CodeTransparencyClient(endpoint, credential);

foreach (string item in client.GetEntryIds(from: 1234L, to: 1234L))
{
}

Applies to