Get the record for an existing stream from the repository.
Namespace: Perforce.P4Assembly: p4api.net (in p4api.net.dll) Version: 2015.1.103.4687 (2015.1.103.4687)
Syntax
C# |
---|
public Stream GetStream( string stream, string parent, Options options ) |
Visual Basic |
---|
Public Function GetStream ( _ stream As String, _ parent As String, _ options As Options _ ) As Stream |
Visual C++ |
---|
public: Stream^ GetStream( String^ stream, String^ parent, Options^ options ) |
Parameters
- stream
- Type: System..::..String
Stream name
- parent
- Type: System..::..String
- options
- Type: Perforce.P4..::..Options
There are no valid flags to use when fetching an existing stream
Return Value
The Stream object if new stream was found, null if creation failed
Examples
Get the stream with the stream Id "//Rocket/GUI":
CopyC#
Get stream spec for a new development type stream with the parent
//Rocket/MAIN:
CopyC#

string targetStream = "//Rocket/GUI"; Stream s = rep.GetStream(targetStream, null, null);

string targetStream = "//Rocket/GUI2"; string parentStream = "//Rocket/MAIN"; Stream stream = rep.GetStream(targetStream, parentStream, new StreamCmdOptions(StreamCmdFlags.None, parentStream, StreamType.Development.ToString()));