When overridden in a derived class, sets the position within the current stream.
        Namespace:
Contracts
        
Assembly: Contracts (in Contracts.dll)
	
		
	
	
	
				
			
	
			
				
				
				
					
				
					
			
		
		
		
			
	
			
				
				
				
					
				
					
			
		
		
			
	
			
				
				
				
					
				
					
			
		
		
		
		
	
	
		
	
		
	
  
	
	
	
	
	
	
		
  
	
	
						
			
			Assembly: Contracts (in Contracts.dll)
Public Overrides Function Seek( _
ByVal offset As Long, _
ByVal origin As SeekOrigin _
) As Long
This language is not supported or no code example is available.
public override long Seek(
long offset,
SeekOrigin origin
)
This language is not supported or no code example is available.
public:
long Seek(
long offset,
SeekOrigin origin
)
This language is not supported or no code example is available.
Parameters
- offset
 - 
		Type: long 
		
A byte offset relative to the origin parameter.
 
- origin
 - 
		Type: SeekOrigin 
		
A value of type SeekOrigin indicating the reference point used to obtain the new position.
 
Return Value
Type: longThe new position within the current stream.
| Exception type | Condition | 
|---|---|
| 
				 An I/O error occurs.  | 
		|
| 
				 Methods were called after the stream was closed.  | 
		|
| 
				 The stream does not support seeking, such as if the stream is constructed from a pipe or console output.  |