• Products
  • Solutions
  • Customers
  • Resources
  • Company
  • Pricing
  • Download
Try Playground
Show / Hide Table of Contents
  • Alachisoft.NCache.Client
    • CacheClearedCallback
    • CacheCollection
    • CacheConnection
    • CacheConnectionOptions
    • CacheDataNotificationCallback
    • CacheEventArg
    • CacheEventDescriptor
    • CacheItem
    • CacheItemRemovedReason
    • CacheItemVersion
    • CacheManager
    • CacheStoppedCallback
    • CacheStream
    • CacheStreamAttributes
    • CacheSyncDependency
    • ClientCacheSyncMode
    • ContinuousQuery
    • ContinuousQueryClearCallback
    • CQEventArg
    • Credentials
    • EventArg
    • EventCacheItem
    • ICache
    • ICacheReader
    • IsolationLevel
    • LockHandle
    • LogLevel
    • MemberJoinedCallback
    • MemberLeftCallback
    • NodeInfo
    • QueryCommand
    • QueryDataNotificationCallback
    • RemoteCacheKeyDependency
    • ServerInfo
    • StreamMode
    • TagSearchOptions
    • Alachisoft.NCache.Client.DataTypes
      • DataTypeAttributes
      • IDataTypeManager
      • IDistributedDataTypes
    • Alachisoft.NCache.Client.DataTypes.Collections
      • ICollectionManager
      • IDistributedDictionary<TKey, TValue>
      • IDistributedHashSet<T>
      • IDistributedList<T>
      • IDistributedQueue<T>
      • ILockable
      • INotifiable
    • Alachisoft.NCache.Client.DataTypes.Counter
      • ICounter
    • Alachisoft.NCache.Client.Services
      • IExecutionService
      • IMessagingService
      • INotificationService
      • ISearchService
  • Alachisoft.NCache.Runtime
    • CacheItemPriority
    • NCacheConfigurationOptions
    • Alachisoft.NCache.Runtime.Aggregation
      • IAggregator
      • IValueExtractor
    • Alachisoft.NCache.Runtime.Bridge
      • BridgeItemOpCodes
      • BridgeItemVersion
      • ConflictResolution
      • IBridgeConflictResolver
      • ProviderBridgeItem
      • ResolutionAction
    • Alachisoft.NCache.Runtime.CacheLoader
      • ICacheLoader
      • RefreshPreference
    • Alachisoft.NCache.Runtime.Caching
      • CacheClientConnectivityChangedCallback
      • CacheItemAttributes
      • ConnectivityStatus
      • DataSourceModifiedCallBack
      • DeliveryMode
      • DeliveryOption
      • DistributedDataType
      • Expiration
      • ExpirationType
      • IDurableTopicSubscription
      • IMessage
      • INamedTagTypeRetrieval
      • ITopic
      • ITopicSubscription
      • Message
      • MessageDeliveryFailureCallback
      • MessageEventArgs
      • MessageFailedEventArgs
      • MessageFailureReason
      • MessageReceivedCallback
      • NamedTagsDictionary
      • NonQueryIndexedAttribute
      • ProviderCacheItem
      • ProviderDataTypeItem<TValue>
      • ProviderItemBase
      • QueryIndexableAttribute
      • QueryIndexedAttribute
      • ReadMode
      • ReadThruOptions
      • ResyncOptions
      • SubscriptionPolicy
      • Tag
      • TopicDeletedCallback
      • TopicDeleteEventArgs
      • WriteBehindOpResult
      • WriteBehindOpStatus
      • WriteMode
      • WriteThruOptions
    • Alachisoft.NCache.Runtime.Caching.Messaging
      • TopicSearchOptions
    • Alachisoft.NCache.Runtime.CustomDependencyProviders
      • ICustomDependencyProvider
    • Alachisoft.NCache.Runtime.DataPersistence
      • DatasetIdentifier
      • IDataPersistenceProvider
      • IDataReader<TKey, TValue>
      • PersistedDataType
      • StorageEntryInfo
      • StoreOperationType
    • Alachisoft.NCache.Runtime.DatasourceProviders
      • DatastructureOperationType
      • DataTypeWriteOperation
      • IReadThruProvider
      • IWriteThruProvider
      • OperationResult
      • OperationResult.Status
      • WriteOperation
      • WriteOperationBase
      • WriteOperationType
    • Alachisoft.NCache.Runtime.Dependencies
      • AggregateCacheDependency
      • BulkExtensibleDependency
      • CacheDependency
      • CmdParamsType
      • CustomDependency
      • DBCacheDependency
      • DBDependencyFactory
      • DBDependencyType
      • ExtensibleDependency
      • FileDependency
      • KeyDependency
      • KeyDependencyType
      • NosDBDependency
      • NotifyExtensibleDependency
      • NotifyExtensibleDependency.DependencyChangedHandler
      • OracleCacheDependency
      • OracleCmdParams
      • OracleCmdParamsType
      • OracleCommandType
      • OracleParameterDirection
      • SqlCacheDependency
      • SqlCmdParams
      • SqlCommandType
      • SqlDataRowVersion
      • SqlParamDirection
    • Alachisoft.NCache.Runtime.Enum
      • JsonDataType
    • Alachisoft.NCache.Runtime.Events
      • DataTypeDataNotificationCallback
      • DataTypeEventArg
      • DataTypeEventDataFilter
      • EventDataFilter
      • EventType
    • Alachisoft.NCache.Runtime.Exceptions
      • AggregateException
      • APILoggingException
      • AttributeIndexNotDefined
      • BucketTransferredException
      • CacheException
      • CollectionTypeMismatchException
      • ConfigurationException
      • ConnectionException
      • GeneralFailureException
      • InvalidReaderException
      • InvalidTaskEnumeratorException
      • LicensingException
      • LockingException
      • MaintenanceException
      • ManagementException
      • MaxClientReachedException
      • MemberIsStoppedException
      • MetricsException
      • ObjectNotInitializedException
      • OperationFailedException
      • OperationNotSupportedException
      • ParserException
      • SecurityException
      • StateTransferInProgressException
      • StreamAlreadyLockedException
      • StreamCloseException
      • StreamException
      • StreamInvalidLockException
      • StreamNotFoundException
      • SuspectedException
      • TimeoutException
      • TypeIndexNotDefined
    • Alachisoft.NCache.Runtime.GenericTypesProvider
      • IGenericTypeProvider
      • Alachisoft.NCache.Runtime.JSON
        • IJsonArray
        • IJSONDocument
        • IJsonObject
        • IJsonValue
        • JsonArray
        • JsonConstants
        • JsonNull
        • JsonObject
        • JsonValue
        • JsonValueBase
        • PrimaryField
      • Alachisoft.NCache.Runtime.MapReduce
        • ICombiner
        • ICombinerFactory
        • IKeyFilter
        • IMapper
        • IOutputMap
        • IReducer
        • IReducerFactory
        • ITaskResult
        • ITrackableTask
        • KeyValuePair
        • MapReduceCallback
        • MapReduceTask
        • TaskCompletionStatus
        • TaskStatus
        • TaskStatus.Status
      • Alachisoft.NCache.Runtime.Messaging
        • TopicPriority
      • Alachisoft.NCache.Runtime.Processor
        • EntryProcessorException
        • IMutableEntry
      • Alachisoft.NCache.Runtime.Serialization
        • ICompactSerializable
        • ICustomSerializable
      • Alachisoft.NCache.Runtime.Serialization.IO
        • CompactReader
        • CompactWriter
  • EntityFrameworkCore
    • Alachisoft.NCache.EntityFrameworkCore
      • Cache
      • CachingOptions
      • DbContextExtensions
      • NCacheConfiguration
      • QueryCacheExtensions.
  • SignalR
    • Alachisoft.NCache.AspNet.SignalR
      • DependencyResolverExtensions
      • NCacheScaleoutConfiguration
    • Alachisoft.NCache.AspNetCore.SignalR
      • NCacheConfiguration
      • NCacheDependencyInjectionExtensions
  • LINQ
    • Alachisoft.NCache.Linq
      • NCacheQuery<T>
  • OutputCacheProvider
    • Alachisoft.NCache.OutputCacheProvider
      • NOutputCacheProvider
    • Alachisoft.NCache.OutputCacheProvider.OutputCacheHook
      • CacheMetadata
      • CacheOperation
      • IOutputCacheHook
  • Response Caching
    • Alachisoft.NCache.ResponseCaching
      • ResponseCachingExtensionMethods
  • EntityFramework Caching
    • Alachisoft.NCache.Integrations.EntityFramework.Caching
      • EFCommandInterceptor
      • QueryableExtensions
      • ResyncProviderModel
        • EfResyncProvider
  • Sessions
    • Alachisoft.NCache.Caching.Distributed
      • IDistributedCacheProvider
      • NCacheSessionExtensions
    • Alachisoft.NCache.Caching.Distributed.Configuration
      • NCacheConfiguration
    • Alachisoft.NCache.Web.SessionState
      • NCacheSession
      • NCacheSessionExtensions
  • Data Protection Provider
    • NCacheDataProtectionBuilderExtension

Method SetLength

SetLength(Int64)

Sets the length of the stream.

Declaration
public override void SetLength(long value)
Parameters
Type Name Description
System.Int64 value

The desired length of the current stream in bytes.

Overrides
System.IO.Stream.SetLength(System.Int64)
Exceptions
Type Condition
System.NotSupportedException

Stream does not support both writing and seeking.

In This Article
  • SetLength(Int64)

Contact Us

PHONE

+1 (214) 764-6933   (US)

+44 20 7993 8327   (UK)

 
EMAIL

sales@alachisoft.com

support@alachisoft.com

NCache
  • NCache Enterprise
  • NCache Professional
  • Edition Comparison
  • NCache Architecture
  • Benchmarks
Download
Pricing
Try Playground

Deployments
  • Cloud (SaaS & Software)
  • On-Premises
  • Kubernetes
  • Docker
Technical Use Cases
  • ASP.NET Sessions
  • ASP.NET Core Sessions
  • Pub/Sub Messaging
  • Real-Time ASP.NET SignalR
  • Internet of Things (IoT)
  • NoSQL Database
  • Stream Processing
  • Microservices
Resources
  • Magazine Articles
  • Third-Party Articles
  • Articles
  • Videos
  • Whitepapers
  • Shows
  • Talks
  • Blogs
  • Docs
Customer Case Studies
  • Testimonials
  • Customers
Support
  • Schedule a Demo
  • Forum (Google Groups)
  • Tips
Company
  • Leadership
  • Partners
  • News
  • Events
  • Careers
Contact Us

  • EnglishChinese (Simplified)FrenchGermanItalianJapaneseKoreanPortugueseSpanish

  • Contact Us
  •  
  • Sitemap
  •  
  • Terms of Use
  •  
  • Privacy Policy
� Copyright Alachisoft 2002 - 2025. All rights reserved. NCache is a registered trademark of Diyatech Corp.
Back to top