• APIブラウザ
  • 設計思想
Show / Hide Table of Contents
  • ExapisSOP
    • AppWorker
    • ContextEventArgs
    • HostRunner
    • IConfiguration
    • IContext
    • IPipeline
    • IProcess
    • IProcess<TParam, TResult>
    • IService
    • TerminationEventArgs
    • TerminationException
    • TerminationReason
    • UnhandledErrorEventArgs
    • VersionInfo
  • ExapisSOP.Binary
    • DataValue
  • ExapisSOP.Core
    • ConfigurationExtensions
    • ContextExtensions
    • CustomPipelineProcess<TParam, TResult>
    • ImmutablePipeline
    • Pipeline
    • PipelineExtensions
    • PipelineExtensions.ExceptionHandler
    • PipelineExtensions.ExceptionHandler<TParam, TResult>
    • PipelineExtensions.LoggingProcess
    • PipelineExtensions.NextProcessFunc
    • PipelineExtensions.ProcessFunc
    • PipelineExtensions.ProcessFunc<TParam, TResult>
    • PipelineExtensions.ProcessFuncWrapper
    • PipelineExtensions.ProcessFuncWrapper<TParam, TResult>
  • ExapisSOP.Globalization
    • EnglishErrorReportBuilder
    • JapaneseErrorReportBuilder
  • ExapisSOP.IO
    • CachedStream
    • DefaultPath
    • FileSystemServiceOptions
    • FileSystemServiceOptionsExtensions
    • IFileSystemService
    • InvalidPathFormatException
    • IPathList
    • Paths
    • PathString
    • PathStringFormatter
  • ExapisSOP.IO.Logging
    • ConsoleLogger
    • DefaultErrorDetailProvider
    • ErrorReportBuilder
    • ExceptionRecord
    • HResultDetailProvider
    • ICustomErrorDetailProvider
    • ILogFile
    • ILoggable
    • ILogger
    • ILoggingSystemService
    • LogData
    • LogFile
    • LogFileType
    • Logger
    • LoggerExtension
    • LoggingSystemServiceOptions
    • LoggingSystemServiceOptions.CreateLogFile
    • LogLevel
    • LongMessageRecord
    • MultipleLogger
    • OutputStreamLogger
  • ExapisSOP.IO.Settings
    • CustomSettings
    • DataStore
    • DefaultSettings
    • EnvironmentSettings
    • ISettingsSystemService
    • OptimizedSettings
    • SettingsSystemServiceOptions
    • SettingsSystemServiceOptions.ConfirmVersionInfo
    • SettingsSystemServiceOptions.GetVersionInfo
  • ExapisSOP.IO.Settings.CommandLine
    • CommandLineConverter
    • CommandLineParser
    • CommandLineServiceOptions
    • CommandLineServiceOptions.CreateConverterMappingTable
    • FileNameList
    • IArgumentConverter
    • IArgumentConverter<T>
    • ICommandLineService
    • ManualAttribute
    • Option
    • Option.Value
    • OptionAttribute
    • Switch
    • SwitchAttribute
  • ExapisSOP.NativeWrapper
    • INativeCaller
    • WinAPI
  • ExapisSOP.NativeWrapper.Windows
    • Kernel32
  • ExapisSOP.Numerics
    • CryptionRandom
    • IRandom
    • LinearCongruentialGenerator
    • RandomExtension
    • SerializableRandom
    • SystemRandom
    • Xorshift
    • Xorshift2
  • ExapisSOP.Text
    • SimpleEncoding
    • SimpleString
  • ExapisSOP.Utils
    • ArrayExtensions
    • ConsoleUtil
    • DisposableBase
    • IAwaitable<T>
    • IAwaiter<T>
    • IUtilityService
    • SecureStringExtensions
    • SerializationInfoExtensions
    • StringExtensions
    • StringUtil
    • UtilityConfigurationExtensions
    • UtilityContextExtensions

DisposableBase クラス

破棄可能なオブジェクトの基底クラスです。

継承
System.Object
DisposableBase
LogFile
実装
System.IDisposable
System.IAsyncDisposable
継承されたメンバー
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
名前空間: ExapisSOP.Utils
アセンブリ: ExapisSOP.dll
構文
public abstract class DisposableBase : IDisposable, IAsyncDisposable

コンストラクタ 一覧

| 編集/提案 ソースを表示

DisposableBase()

型'DisposableBase'の新しいインスタンスを生成します。

宣言
public DisposableBase()

プロパティ 一覧

| 編集/提案 ソースを表示

DisposableObjects

破棄可能なオブジェクトを格納したリストを取得します。

宣言
protected IList<object> DisposableObjects { get; }
プロパティ値
型 説明
System.Collections.Generic.IList<System.Object>
| 編集/提案 ソースを表示

IsDisposed

このオブジェクトが破棄されている場合はtrue、有効な場合はfalseを返します。

宣言
public bool IsDisposed { get; }
プロパティ値
型 説明
System.Boolean

メソッド 一覧

| 編集/提案 ソースを表示

Delete(Object)

指定したオブジェクトを削除します。 System.IDisposableを継承しているクラスの場合、System.IDisposable.Dispose()を呼び出し、 それ以外のクラスはリフレクションを利用し強制的にデストラクタ(例:System.Object.Finalize)を強制的に実行します。

宣言
[Obsolete("予期せぬ不具合が発生する可能性がある為、この関数は呼び出さないでください。")]
public static void Delete(object obj)
引数
型 名前 説明
System.Object obj

削除対象のオブジェクトです。

脚注

この関数を利用して削除したオブジェクトは利用しないでください。

例外
型 条件
System.Exception

処理が失敗しました。

| 編集/提案 ソースを表示

Dispose()

現在のオブジェクトインスタンスと利用しているリソースを破棄します。

宣言
public void Dispose()
| 編集/提案 ソースを表示

Dispose(Boolean)

現在のオブジェクトインスタンスと利用しているリソースを破棄します。 この関数内で例外を発生させてはいけません。

宣言
protected virtual void Dispose(bool disposing)
引数
型 名前 説明
System.Boolean disposing

マネージドオブジェクトとアンマネージオブジェクト両方を破棄する場合はtrue、 アンマネージオブジェクトのみを破棄する場合はfalseを設定します。

脚注

この関数を上書きする場合は、必ず基底関数を呼び出してください。 以下の様に実装します:

 protected override void Dispose(disposing)
 {
   if (!this.IsDisposed) {
     if (disposing) {
       /* TODO: ここでマネージドオブジェクトを破棄 */
     }
     /* TODO: ここでアンマネージオブジェクトを破棄 */
     base.Dispose(disposing);
   }
 }
| 編集/提案 ソースを表示

DisposeAsync()

現在のオブジェクトインスタンスと利用しているリソースを非同期的に破棄します。

宣言
public ValueTask DisposeAsync()
戻り値
型 説明
System.Threading.Tasks.ValueTask
| 編集/提案 ソースを表示

EnsureNotDisposed()

現在のインスタンスとDisposableObjectsが破棄されていない事を確認します。 実行速度を優先する場合はThrowOnObjectDisposed()を呼び出してください。

宣言
protected void EnsureNotDisposed()
脚注

論理値を返す公開されたIsDisposedが実装されていない場合、判定する事はできません。

例外
型 条件
System.ObjectDisposedException
| 編集/提案 ソースを表示

Finalize()

型'DisposableBase'の現在のインスタンスを破棄します。

宣言
protected void Finalize()
| 編集/提案 ソースを表示

ThrowOnObjectDisposed()

現在のインスタンスが破棄されている場合に例外を発生させます。 堅牢性を優先する場合はEnsureNotDisposed()を呼び出してください。

宣言
protected void ThrowOnObjectDisposed()
例外
型 条件
System.ObjectDisposedException

実装

System.IDisposable
System.IAsyncDisposable
  • 編集/提案
  • ソースを表示
Back to top Generated by DocFX