AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the GetFile operation. Returns the base-64 encoded contents of a specified file and its metadata.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.CodeCommit.AmazonCodeCommitRequest
      Amazon.CodeCommit.Model.GetFileRequest

Namespace: Amazon.CodeCommit.Model
Assembly: AWSSDK.CodeCommit.dll
Version: 3.x.y.z

Syntax

C#
public class GetFileRequest : AmazonCodeCommitRequest
         IAmazonWebServiceRequest

The GetFileRequest type exposes the following members

Constructors

NameDescription
Public Method GetFileRequest()

Properties

NameTypeDescription
Public Property CommitSpecifier System.String

Gets and sets the property CommitSpecifier.

The fully quaified reference that identifies the commit that contains the file. For example, you can specify a full commit ID, a tag, a branch name, or a reference such as refs/heads/main. If none is provided, the head commit is used.

Public Property FilePath System.String

Gets and sets the property FilePath.

The fully qualified path to the file, including the full name and extension of the file. For example, /examples/file.md is the fully qualified path to a file named file.md in a folder named examples.

Public Property RepositoryName System.String

Gets and sets the property RepositoryName.

The name of the repository that contains the file.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5