RepositoryGetStream Method (String, String, Options)
|
Note: This API is now obsolete.
Get the record for an existing stream from the repository.
Namespace:
Perforce.P4
Assembly:
p4api.net (in p4api.net.dll) Version: 2024.2.269.3570
Syntax [ObsoleteAttribute("Use GetStream(string stream, Options options)")]
public Stream GetStream(
string stream,
string parent,
Options options
)
<ObsoleteAttribute("Use GetStream(string stream, Options options)")>
Public Function GetStream (
stream As String,
parent As String,
options As Options
) As Stream
public:
[ObsoleteAttribute(L"Use GetStream(string stream, Options options)")]
Stream^ GetStream(
String^ stream,
String^ parent,
Options^ options
)
[<ObsoleteAttribute("Use GetStream(string stream, Options options)")>]
member GetStream :
stream : string *
parent : string *
options : Options -> Stream
Parameters
- stream
- Type: SystemString
Stream name - parent
- Type: SystemString
Parent name - options
- Type: Perforce.P4Options
There are no valid flags to use when fetching an existing stream
Return Value
Type:
StreamThe Stream object if new stream was found, null if creation failed
Examples
Get the stream with the stream Id "//Rocket/GUI":
string targetStream = "//Rocket/GUI";
Stream s = rep.GetStream(targetStream, null, null);
Get stream spec for a new development type stream with the parent
//Rocket/MAIN:
string targetStream = "//Rocket/GUI2";
string parentStream = "//Rocket/MAIN";
Stream stream = rep.GetStream(targetStream, parentStream,
new StreamCmdOptions(StreamCmdFlags.None, parentStream,
StreamType.Development.ToString()));
See Also