Click or drag to resize

File Class

A versioned object that describes an individual file in a Perforce repository.
Inheritance Hierarchy

Namespace:  Perforce.P4
Assembly:  p4api.net (in p4api.net.dll) Version: 2023.2.258.5793
Syntax
public class File : FileSpec

The File type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyClientPath
Gets or sets the client path
(Inherited from FileSpec.)
Public propertyDepotPath
Gets or sets the depot path
(Inherited from FileSpec.)
Public propertyLocalPath
Gets or sets the Local path
(Inherited from FileSpec.)
Public propertyVersion
Gets or sets the VersionSpec
(Inherited from FileSpec.)
Top
Methods
  NameDescription
Public methodEquals
Compare this FileSpec with another
(Inherited from FileSpec.)
Protected methodFinalize (Inherited from Object.)
Public methodStatic memberFromFilesCmdTaggedData
Return a File from a parsed Tagged Object
Public methodGetHashCode
Get the hashcode for this FileSpec
(Inherited from FileSpec.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodParseFilesCmdTaggedData
Given a Tagged object from the server, instantiate this File from the object
Public methodStripVersion
Create a copy of a filespec without a version
(Inherited from FileSpec.)
Public methodToEscapedString
Create an Perforce excaped string describing this FileSpec
(Inherited from FileSpec.)
Public methodToString
Create a string representing a FileSpec
(Inherited from FileSpec.)
Public methodToString(Type)
Create a descriptive string for this FileSpec of the specified Type
(Inherited from FileSpec.)
Top
Fields
  NameDescription
Public fieldAction
Last Action taken on this file
Public fieldChangeId
What change contains this file?
Public fieldClient
The client/workspace name which contains this file.
Public fieldHaveRev
The revision of this file which is in the client/workspace
Public fieldStream
Stream path, used when performing operations on stream spec: editing, resolving, reverting.
Public fieldSubmitTime
DateTime when file was last submitted
Public fieldType
FileType of the file
Public fieldUser
The user which created this file
Top
See Also