RepositoryGetStream Method (String)
|
Get the record for an existing stream from the repository.
Namespace:
Perforce.P4
Assembly:
p4api.net (in p4api.net.dll) Version: 2024.1.261.8274
Syntax public Stream GetStream(
string stream
)
Public Function GetStream (
stream As String
) As Stream
public:
Stream^ GetStream(
String^ stream
)
member GetStream :
stream : string -> Stream
Parameters
- stream
- Type: SystemString
Stream name
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);
See Also