Edit

GitCompatHttpClientBase.GetItemAsync Method

Definition

Overloads

GetItemAsync(String, String, String, String, Nullable<VersionControlRecursionType>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, GitVersionDescriptor, Nullable<Boolean>, Object, CancellationToken)
Obsolete.

[Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.

GetItemAsync(String, Guid, String, String, Nullable<VersionControlRecursionType>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, GitVersionDescriptor, Nullable<Boolean>, Object, CancellationToken)
Obsolete.

[Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.

GetItemAsync(Guid, String, String, String, Nullable<VersionControlRecursionType>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, GitVersionDescriptor, Nullable<Boolean>, Object, CancellationToken)
Obsolete.

[Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.

GetItemAsync(Guid, Guid, String, String, Nullable<VersionControlRecursionType>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, GitVersionDescriptor, Nullable<Boolean>, Object, CancellationToken)
Obsolete.

[Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.

GetItemAsync(String, String, String, Nullable<VersionControlRecursionType>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, GitVersionDescriptor, Nullable<Boolean>, Object, CancellationToken)
Obsolete.

[Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.

GetItemAsync(String, String, String, String, Nullable<VersionControlRecursionType>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, GitVersionDescriptor, Object, CancellationToken)
Obsolete.

[Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.

GetItemAsync(Guid, String, String, String, Nullable<VersionControlRecursionType>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, GitVersionDescriptor, Object, CancellationToken)
Obsolete.

[Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.

GetItemAsync(Guid, String, String, Nullable<VersionControlRecursionType>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, GitVersionDescriptor, Nullable<Boolean>, Object, CancellationToken)
Obsolete.

[Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.

GetItemAsync(Guid, Guid, String, String, Nullable<VersionControlRecursionType>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, GitVersionDescriptor, Object, CancellationToken)
Obsolete.

[Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.

GetItemAsync(String, String, String, Nullable<VersionControlRecursionType>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, GitVersionDescriptor, Object, CancellationToken)
Obsolete.

[Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.

GetItemAsync(Guid, String, String, Nullable<VersionControlRecursionType>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, GitVersionDescriptor, Object, CancellationToken)
Obsolete.

[Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.

GetItemAsync(String, Guid, String, String, Nullable<VersionControlRecursionType>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, GitVersionDescriptor, Object, CancellationToken)
Obsolete.

[Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.

GetItemAsync(String, String, String, String, Nullable<VersionControlRecursionType>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, GitVersionDescriptor, Nullable<Boolean>, Object, CancellationToken)

Caution

This API is now deprecated.

[Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.

[System.Obsolete]
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitItem> GetItemAsync(string project, string repositoryId, string path, string scopePath, Nullable<Microsoft.TeamFoundation.SourceControl.WebApi.VersionControlRecursionType> recursionLevel, Nullable<bool> includeContentMetadata, Nullable<bool> latestProcessedChange, Nullable<bool> download, Microsoft.TeamFoundation.SourceControl.WebApi.GitVersionDescriptor versionDescriptor, Nullable<bool> includeContent, object userState, System.Threading.CancellationToken cancellationToken = null);
abstract member GetItemAsync : string * string * string * string * Nullable<Microsoft.TeamFoundation.SourceControl.WebApi.VersionControlRecursionType> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Microsoft.TeamFoundation.SourceControl.WebApi.GitVersionDescriptor * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitItem>
override this.GetItemAsync : string * string * string * string * Nullable<Microsoft.TeamFoundation.SourceControl.WebApi.VersionControlRecursionType> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Microsoft.TeamFoundation.SourceControl.WebApi.GitVersionDescriptor * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitItem>

Parameters

project
String

Project ID or project name

repositoryId
String

The name or ID of the repository.

path
String

The item path.

scopePath
String

The path scope. The default is null.

recursionLevel
Nullable<VersionControlRecursionType>

The recursion level of this request. The default is 'none', no recursion.

includeContentMetadata
Nullable<Boolean>

Set to true to include content metadata. Default is false.

latestProcessedChange
Nullable<Boolean>

Set to true to include the lastest changes. Default is false.

download
Nullable<Boolean>

Set to true to download the response as a file. Default is false.

versionDescriptor
GitVersionDescriptor

Version descriptor. Default is null.

includeContent
Nullable<Boolean>

Set to true to include item content when requesting json. Default is false.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Attributes

Applies to

GetItemAsync(String, Guid, String, String, Nullable<VersionControlRecursionType>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, GitVersionDescriptor, Nullable<Boolean>, Object, CancellationToken)

Caution

This API is now deprecated.

[Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.

[System.Obsolete]
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitItem> GetItemAsync(string project, Guid repositoryId, string path, string scopePath, Nullable<Microsoft.TeamFoundation.SourceControl.WebApi.VersionControlRecursionType> recursionLevel, Nullable<bool> includeContentMetadata, Nullable<bool> latestProcessedChange, Nullable<bool> download, Microsoft.TeamFoundation.SourceControl.WebApi.GitVersionDescriptor versionDescriptor, Nullable<bool> includeContent, object userState, System.Threading.CancellationToken cancellationToken = null);
abstract member GetItemAsync : string * Guid * string * string * Nullable<Microsoft.TeamFoundation.SourceControl.WebApi.VersionControlRecursionType> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Microsoft.TeamFoundation.SourceControl.WebApi.GitVersionDescriptor * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitItem>
override this.GetItemAsync : string * Guid * string * string * Nullable<Microsoft.TeamFoundation.SourceControl.WebApi.VersionControlRecursionType> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Microsoft.TeamFoundation.SourceControl.WebApi.GitVersionDescriptor * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitItem>

Parameters

project
String

Project ID or project name

repositoryId
Guid

The name or ID of the repository.

path
String

The item path.

scopePath
String

The path scope. The default is null.

recursionLevel
Nullable<VersionControlRecursionType>

The recursion level of this request. The default is 'none', no recursion.

includeContentMetadata
Nullable<Boolean>

Set to true to include content metadata. Default is false.

latestProcessedChange
Nullable<Boolean>

Set to true to include the lastest changes. Default is false.

download
Nullable<Boolean>

Set to true to download the response as a file. Default is false.

versionDescriptor
GitVersionDescriptor

Version descriptor. Default is null.

includeContent
Nullable<Boolean>

Set to true to include item content when requesting json. Default is false.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Attributes

Applies to

GetItemAsync(Guid, String, String, String, Nullable<VersionControlRecursionType>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, GitVersionDescriptor, Nullable<Boolean>, Object, CancellationToken)

Caution

This API is now deprecated.

[Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.

[System.Obsolete]
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitItem> GetItemAsync(Guid project, string repositoryId, string path, string scopePath, Nullable<Microsoft.TeamFoundation.SourceControl.WebApi.VersionControlRecursionType> recursionLevel, Nullable<bool> includeContentMetadata, Nullable<bool> latestProcessedChange, Nullable<bool> download, Microsoft.TeamFoundation.SourceControl.WebApi.GitVersionDescriptor versionDescriptor, Nullable<bool> includeContent, object userState, System.Threading.CancellationToken cancellationToken = null);
abstract member GetItemAsync : Guid * string * string * string * Nullable<Microsoft.TeamFoundation.SourceControl.WebApi.VersionControlRecursionType> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Microsoft.TeamFoundation.SourceControl.WebApi.GitVersionDescriptor * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitItem>
override this.GetItemAsync : Guid * string * string * string * Nullable<Microsoft.TeamFoundation.SourceControl.WebApi.VersionControlRecursionType> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Microsoft.TeamFoundation.SourceControl.WebApi.GitVersionDescriptor * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitItem>

Parameters

project
Guid

Project ID

repositoryId
String

The name or ID of the repository.

path
String

The item path.

scopePath
String

The path scope. The default is null.

recursionLevel
Nullable<VersionControlRecursionType>

The recursion level of this request. The default is 'none', no recursion.

includeContentMetadata
Nullable<Boolean>

Set to true to include content metadata. Default is false.

latestProcessedChange
Nullable<Boolean>

Set to true to include the lastest changes. Default is false.

download
Nullable<Boolean>

Set to true to download the response as a file. Default is false.

versionDescriptor
GitVersionDescriptor

Version descriptor. Default is null.

includeContent
Nullable<Boolean>

Set to true to include item content when requesting json. Default is false.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Attributes

Applies to

GetItemAsync(Guid, Guid, String, String, Nullable<VersionControlRecursionType>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, GitVersionDescriptor, Nullable<Boolean>, Object, CancellationToken)

Caution

This API is now deprecated.

[Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.

[System.Obsolete]
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitItem> GetItemAsync(Guid project, Guid repositoryId, string path, string scopePath, Nullable<Microsoft.TeamFoundation.SourceControl.WebApi.VersionControlRecursionType> recursionLevel, Nullable<bool> includeContentMetadata, Nullable<bool> latestProcessedChange, Nullable<bool> download, Microsoft.TeamFoundation.SourceControl.WebApi.GitVersionDescriptor versionDescriptor, Nullable<bool> includeContent, object userState, System.Threading.CancellationToken cancellationToken = null);
abstract member GetItemAsync : Guid * Guid * string * string * Nullable<Microsoft.TeamFoundation.SourceControl.WebApi.VersionControlRecursionType> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Microsoft.TeamFoundation.SourceControl.WebApi.GitVersionDescriptor * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitItem>
override this.GetItemAsync : Guid * Guid * string * string * Nullable<Microsoft.TeamFoundation.SourceControl.WebApi.VersionControlRecursionType> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Microsoft.TeamFoundation.SourceControl.WebApi.GitVersionDescriptor * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitItem>

Parameters

project
Guid

Project ID

repositoryId
Guid

The name or ID of the repository.

path
String

The item path.

scopePath
String

The path scope. The default is null.

recursionLevel
Nullable<VersionControlRecursionType>

The recursion level of this request. The default is 'none', no recursion.

includeContentMetadata
Nullable<Boolean>

Set to true to include content metadata. Default is false.

latestProcessedChange
Nullable<Boolean>

Set to true to include the lastest changes. Default is false.

download
Nullable<Boolean>

Set to true to download the response as a file. Default is false.

versionDescriptor
GitVersionDescriptor

Version descriptor. Default is null.

includeContent
Nullable<Boolean>

Set to true to include item content when requesting json. Default is false.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Attributes

Applies to

GetItemAsync(String, String, String, Nullable<VersionControlRecursionType>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, GitVersionDescriptor, Nullable<Boolean>, Object, CancellationToken)

Caution

This API is now deprecated.

[Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.

[System.Obsolete]
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitItem> GetItemAsync(string repositoryId, string path, string scopePath, Nullable<Microsoft.TeamFoundation.SourceControl.WebApi.VersionControlRecursionType> recursionLevel, Nullable<bool> includeContentMetadata, Nullable<bool> latestProcessedChange, Nullable<bool> download, Microsoft.TeamFoundation.SourceControl.WebApi.GitVersionDescriptor versionDescriptor, Nullable<bool> includeContent, object userState, System.Threading.CancellationToken cancellationToken = null);
abstract member GetItemAsync : string * string * string * Nullable<Microsoft.TeamFoundation.SourceControl.WebApi.VersionControlRecursionType> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Microsoft.TeamFoundation.SourceControl.WebApi.GitVersionDescriptor * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitItem>
override this.GetItemAsync : string * string * string * Nullable<Microsoft.TeamFoundation.SourceControl.WebApi.VersionControlRecursionType> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Microsoft.TeamFoundation.SourceControl.WebApi.GitVersionDescriptor * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitItem>

Parameters

repositoryId
String

The name or ID of the repository.

path
String

The item path.

scopePath
String

The path scope. The default is null.

recursionLevel
Nullable<VersionControlRecursionType>

The recursion level of this request. The default is 'none', no recursion.

includeContentMetadata
Nullable<Boolean>

Set to true to include content metadata. Default is false.

latestProcessedChange
Nullable<Boolean>

Set to true to include the lastest changes. Default is false.

download
Nullable<Boolean>

Set to true to download the response as a file. Default is false.

versionDescriptor
GitVersionDescriptor

Version descriptor. Default is null.

includeContent
Nullable<Boolean>

Set to true to include item content when requesting json. Default is false.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Attributes

Applies to

GetItemAsync(String, String, String, String, Nullable<VersionControlRecursionType>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, GitVersionDescriptor, Object, CancellationToken)

Caution

This API is now deprecated.

[Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.

[System.Obsolete]
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitItem> GetItemAsync(string project, string repositoryId, string path, string scopePath, Nullable<Microsoft.TeamFoundation.SourceControl.WebApi.VersionControlRecursionType> recursionLevel, Nullable<bool> includeContentMetadata, Nullable<bool> latestProcessedChange, Nullable<bool> download, Microsoft.TeamFoundation.SourceControl.WebApi.GitVersionDescriptor versionDescriptor, object userState, System.Threading.CancellationToken cancellationToken = null);
abstract member GetItemAsync : string * string * string * string * Nullable<Microsoft.TeamFoundation.SourceControl.WebApi.VersionControlRecursionType> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Microsoft.TeamFoundation.SourceControl.WebApi.GitVersionDescriptor * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitItem>
override this.GetItemAsync : string * string * string * string * Nullable<Microsoft.TeamFoundation.SourceControl.WebApi.VersionControlRecursionType> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Microsoft.TeamFoundation.SourceControl.WebApi.GitVersionDescriptor * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitItem>

Parameters

project
String

Project ID or project name

repositoryId
String

The Id of the repository.

path
String

The item path.

scopePath
String

The path scope. The default is null.

recursionLevel
Nullable<VersionControlRecursionType>

The recursion level of this request. The default is 'none', no recursion.

includeContentMetadata
Nullable<Boolean>

Set to true to include content metadata. Default is false.

latestProcessedChange
Nullable<Boolean>

Set to true to include the lastest changes. Default is false.

download
Nullable<Boolean>

Set to true to download the response as a file. Default is false.

versionDescriptor
GitVersionDescriptor

Version descriptor. Default is null.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Attributes

Applies to

GetItemAsync(Guid, String, String, String, Nullable<VersionControlRecursionType>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, GitVersionDescriptor, Object, CancellationToken)

Caution

This API is now deprecated.

[Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.

[System.Obsolete]
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitItem> GetItemAsync(Guid project, string repositoryId, string path, string scopePath, Nullable<Microsoft.TeamFoundation.SourceControl.WebApi.VersionControlRecursionType> recursionLevel, Nullable<bool> includeContentMetadata, Nullable<bool> latestProcessedChange, Nullable<bool> download, Microsoft.TeamFoundation.SourceControl.WebApi.GitVersionDescriptor versionDescriptor, object userState, System.Threading.CancellationToken cancellationToken = null);
abstract member GetItemAsync : Guid * string * string * string * Nullable<Microsoft.TeamFoundation.SourceControl.WebApi.VersionControlRecursionType> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Microsoft.TeamFoundation.SourceControl.WebApi.GitVersionDescriptor * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitItem>
override this.GetItemAsync : Guid * string * string * string * Nullable<Microsoft.TeamFoundation.SourceControl.WebApi.VersionControlRecursionType> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Microsoft.TeamFoundation.SourceControl.WebApi.GitVersionDescriptor * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitItem>

Parameters

project
Guid

Project ID

repositoryId
String

The Id of the repository.

path
String

The item path.

scopePath
String

The path scope. The default is null.

recursionLevel
Nullable<VersionControlRecursionType>

The recursion level of this request. The default is 'none', no recursion.

includeContentMetadata
Nullable<Boolean>

Set to true to include content metadata. Default is false.

latestProcessedChange
Nullable<Boolean>

Set to true to include the lastest changes. Default is false.

download
Nullable<Boolean>

Set to true to download the response as a file. Default is false.

versionDescriptor
GitVersionDescriptor

Version descriptor. Default is null.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Attributes

Applies to

GetItemAsync(Guid, String, String, Nullable<VersionControlRecursionType>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, GitVersionDescriptor, Nullable<Boolean>, Object, CancellationToken)

Caution

This API is now deprecated.

[Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.

[System.Obsolete]
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitItem> GetItemAsync(Guid repositoryId, string path, string scopePath, Nullable<Microsoft.TeamFoundation.SourceControl.WebApi.VersionControlRecursionType> recursionLevel, Nullable<bool> includeContentMetadata, Nullable<bool> latestProcessedChange, Nullable<bool> download, Microsoft.TeamFoundation.SourceControl.WebApi.GitVersionDescriptor versionDescriptor, Nullable<bool> includeContent, object userState, System.Threading.CancellationToken cancellationToken = null);
abstract member GetItemAsync : Guid * string * string * Nullable<Microsoft.TeamFoundation.SourceControl.WebApi.VersionControlRecursionType> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Microsoft.TeamFoundation.SourceControl.WebApi.GitVersionDescriptor * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitItem>
override this.GetItemAsync : Guid * string * string * Nullable<Microsoft.TeamFoundation.SourceControl.WebApi.VersionControlRecursionType> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Microsoft.TeamFoundation.SourceControl.WebApi.GitVersionDescriptor * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitItem>

Parameters

repositoryId
Guid

The name or ID of the repository.

path
String

The item path.

scopePath
String

The path scope. The default is null.

recursionLevel
Nullable<VersionControlRecursionType>

The recursion level of this request. The default is 'none', no recursion.

includeContentMetadata
Nullable<Boolean>

Set to true to include content metadata. Default is false.

latestProcessedChange
Nullable<Boolean>

Set to true to include the lastest changes. Default is false.

download
Nullable<Boolean>

Set to true to download the response as a file. Default is false.

versionDescriptor
GitVersionDescriptor

Version descriptor. Default is null.

includeContent
Nullable<Boolean>

Set to true to include item content when requesting json. Default is false.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Attributes

Applies to

GetItemAsync(Guid, Guid, String, String, Nullable<VersionControlRecursionType>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, GitVersionDescriptor, Object, CancellationToken)

Caution

This API is now deprecated.

[Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.

[System.Obsolete]
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitItem> GetItemAsync(Guid project, Guid repositoryId, string path, string scopePath, Nullable<Microsoft.TeamFoundation.SourceControl.WebApi.VersionControlRecursionType> recursionLevel, Nullable<bool> includeContentMetadata, Nullable<bool> latestProcessedChange, Nullable<bool> download, Microsoft.TeamFoundation.SourceControl.WebApi.GitVersionDescriptor versionDescriptor, object userState, System.Threading.CancellationToken cancellationToken = null);
abstract member GetItemAsync : Guid * Guid * string * string * Nullable<Microsoft.TeamFoundation.SourceControl.WebApi.VersionControlRecursionType> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Microsoft.TeamFoundation.SourceControl.WebApi.GitVersionDescriptor * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitItem>
override this.GetItemAsync : Guid * Guid * string * string * Nullable<Microsoft.TeamFoundation.SourceControl.WebApi.VersionControlRecursionType> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Microsoft.TeamFoundation.SourceControl.WebApi.GitVersionDescriptor * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitItem>

Parameters

project
Guid

Project ID

repositoryId
Guid

The Id of the repository.

path
String

The item path.

scopePath
String

The path scope. The default is null.

recursionLevel
Nullable<VersionControlRecursionType>

The recursion level of this request. The default is 'none', no recursion.

includeContentMetadata
Nullable<Boolean>

Set to true to include content metadata. Default is false.

latestProcessedChange
Nullable<Boolean>

Set to true to include the lastest changes. Default is false.

download
Nullable<Boolean>

Set to true to download the response as a file. Default is false.

versionDescriptor
GitVersionDescriptor

Version descriptor. Default is null.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Attributes

Applies to

GetItemAsync(String, String, String, Nullable<VersionControlRecursionType>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, GitVersionDescriptor, Object, CancellationToken)

Caution

This API is now deprecated.

[Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.

[System.Obsolete]
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitItem> GetItemAsync(string repositoryId, string path, string scopePath, Nullable<Microsoft.TeamFoundation.SourceControl.WebApi.VersionControlRecursionType> recursionLevel, Nullable<bool> includeContentMetadata, Nullable<bool> latestProcessedChange, Nullable<bool> download, Microsoft.TeamFoundation.SourceControl.WebApi.GitVersionDescriptor versionDescriptor, object userState, System.Threading.CancellationToken cancellationToken = null);
abstract member GetItemAsync : string * string * string * Nullable<Microsoft.TeamFoundation.SourceControl.WebApi.VersionControlRecursionType> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Microsoft.TeamFoundation.SourceControl.WebApi.GitVersionDescriptor * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitItem>
override this.GetItemAsync : string * string * string * Nullable<Microsoft.TeamFoundation.SourceControl.WebApi.VersionControlRecursionType> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Microsoft.TeamFoundation.SourceControl.WebApi.GitVersionDescriptor * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitItem>

Parameters

repositoryId
String

The Id of the repository.

path
String

The item path.

scopePath
String

The path scope. The default is null.

recursionLevel
Nullable<VersionControlRecursionType>

The recursion level of this request. The default is 'none', no recursion.

includeContentMetadata
Nullable<Boolean>

Set to true to include content metadata. Default is false.

latestProcessedChange
Nullable<Boolean>

Set to true to include the lastest changes. Default is false.

download
Nullable<Boolean>

Set to true to download the response as a file. Default is false.

versionDescriptor
GitVersionDescriptor

Version descriptor. Default is null.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Attributes

Applies to

GetItemAsync(Guid, String, String, Nullable<VersionControlRecursionType>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, GitVersionDescriptor, Object, CancellationToken)

Caution

This API is now deprecated.

[Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.

[System.Obsolete]
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitItem> GetItemAsync(Guid repositoryId, string path, string scopePath, Nullable<Microsoft.TeamFoundation.SourceControl.WebApi.VersionControlRecursionType> recursionLevel, Nullable<bool> includeContentMetadata, Nullable<bool> latestProcessedChange, Nullable<bool> download, Microsoft.TeamFoundation.SourceControl.WebApi.GitVersionDescriptor versionDescriptor, object userState, System.Threading.CancellationToken cancellationToken = null);
abstract member GetItemAsync : Guid * string * string * Nullable<Microsoft.TeamFoundation.SourceControl.WebApi.VersionControlRecursionType> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Microsoft.TeamFoundation.SourceControl.WebApi.GitVersionDescriptor * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitItem>
override this.GetItemAsync : Guid * string * string * Nullable<Microsoft.TeamFoundation.SourceControl.WebApi.VersionControlRecursionType> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Microsoft.TeamFoundation.SourceControl.WebApi.GitVersionDescriptor * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitItem>

Parameters

repositoryId
Guid

The Id of the repository.

path
String

The item path.

scopePath
String

The path scope. The default is null.

recursionLevel
Nullable<VersionControlRecursionType>

The recursion level of this request. The default is 'none', no recursion.

includeContentMetadata
Nullable<Boolean>

Set to true to include content metadata. Default is false.

latestProcessedChange
Nullable<Boolean>

Set to true to include the lastest changes. Default is false.

download
Nullable<Boolean>

Set to true to download the response as a file. Default is false.

versionDescriptor
GitVersionDescriptor

Version descriptor. Default is null.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Attributes

Applies to

GetItemAsync(String, Guid, String, String, Nullable<VersionControlRecursionType>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, GitVersionDescriptor, Object, CancellationToken)

Caution

This API is now deprecated.

[Preview API] Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.

[System.Obsolete]
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitItem> GetItemAsync(string project, Guid repositoryId, string path, string scopePath, Nullable<Microsoft.TeamFoundation.SourceControl.WebApi.VersionControlRecursionType> recursionLevel, Nullable<bool> includeContentMetadata, Nullable<bool> latestProcessedChange, Nullable<bool> download, Microsoft.TeamFoundation.SourceControl.WebApi.GitVersionDescriptor versionDescriptor, object userState, System.Threading.CancellationToken cancellationToken = null);
abstract member GetItemAsync : string * Guid * string * string * Nullable<Microsoft.TeamFoundation.SourceControl.WebApi.VersionControlRecursionType> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Microsoft.TeamFoundation.SourceControl.WebApi.GitVersionDescriptor * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitItem>
override this.GetItemAsync : string * Guid * string * string * Nullable<Microsoft.TeamFoundation.SourceControl.WebApi.VersionControlRecursionType> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Microsoft.TeamFoundation.SourceControl.WebApi.GitVersionDescriptor * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitItem>

Parameters

project
String

Project ID or project name

repositoryId
Guid

The Id of the repository.

path
String

The item path.

scopePath
String

The path scope. The default is null.

recursionLevel
Nullable<VersionControlRecursionType>

The recursion level of this request. The default is 'none', no recursion.

includeContentMetadata
Nullable<Boolean>

Set to true to include content metadata. Default is false.

latestProcessedChange
Nullable<Boolean>

Set to true to include the lastest changes. Default is false.

download
Nullable<Boolean>

Set to true to download the response as a file. Default is false.

versionDescriptor
GitVersionDescriptor

Version descriptor. Default is null.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Attributes

Applies to