RepositoryUpdateStream Method (Stream)
|
Update the record for a stream in the repository
Namespace:
Perforce.P4
Assembly:
p4api.net (in p4api.net.dll) Version: 2024.1.261.8274
Syntaxpublic Stream UpdateStream(
Stream stream
)
Public Function UpdateStream (
stream As Stream
) As Stream
public:
Stream^ UpdateStream(
Stream^ stream
)
member UpdateStream :
stream : Stream -> Stream
Parameters
- stream
- Type: Perforce.P4Stream
Stream specification for the stream being updated
Return Value
Type:
StreamThe Stream object if new stream was saved, null if creation failed
Examples
To set the locked option on a stream:
Stream streamToUpdate = rep.GetStream("//Rocket/GUI");
streamToUpdate.Options |= StreamOption.Locked;
streamToUpdate = rep.UpdateStream(streamToUpdate);
See Also