Click or drag to resize

RepositoryUpdateStream Method (Stream)

Update the record for a stream in the repository

Namespace:  Perforce.P4
Assembly:  p4api.net (in p4api.net.dll) Version: 2023.2.258.5793
Syntax
public Stream UpdateStream(
	Stream stream
)

Parameters

stream
Type: Perforce.P4Stream
Stream specification for the stream being updated

Return Value

Type: Stream
The 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