Update the record for a stream in the repository
Namespace: Perforce.P4Assembly: p4api.net (in p4api.net.dll) Version: 2015.1.103.4687 (2015.1.103.4687)
Syntax
| C# |
|---|
public Stream UpdateStream( Stream stream ) |
| Visual Basic |
|---|
Public Function UpdateStream ( _ stream As Stream _ ) As Stream |
| Visual C++ |
|---|
public: Stream^ UpdateStream( Stream^ stream ) |
Parameters
- stream
- Type: Perforce.P4..::..Stream
Stream specification for the stream being updated
Return Value
The Stream object if new stream was saved, null if creation failed
Examples
To set the locked option on a stream:
CopyC#
Stream streamToUpdate = rep.GetStream("//Rocket/GUI");
streamToUpdate.Options |= StreamOption.Locked;
streamToUpdate = rep.UpdateStream(streamToUpdate);