Table of Contents

Constructor MaaResource

Namespace
MaaFramework.Binding
Assembly
MaaFramework.Binding.Native.dll

MaaResource()

Creates a MaaFramework.Binding.MaaResource instance.

public MaaResource()

Remarks

Wrapper of MaaFramework.Binding.Interop.Native.MaaResource.MaaResourceCreate(MaaFramework.Binding.Interop.Native.MaaNotificationCallback,System.IntPtr).

MaaResource(params string[])

Creates a MaaFramework.Binding.MaaResource instance.

public MaaResource(params string[] paths)

Parameters

paths string[]

The paths of maa resource.

Remarks

Wrapper of MaaFramework.Binding.Interop.Native.MaaResource.MaaResourceCreate(MaaFramework.Binding.Interop.Native.MaaNotificationCallback,System.IntPtr).

Exceptions

ArgumentNullException
MaaJobStatusException

MaaResource(CheckStatusOption, params string[])

Creates a MaaFramework.Binding.MaaResource instance.

public MaaResource(CheckStatusOption check, params string[] paths)

Parameters

check CheckStatusOption

Checks AppendPath(path).Wait() status if is MaaFramework.Binding.CheckStatusOption.ThrowIfNotSucceeded; otherwise, not checks.

paths string[]

The paths of maa resource.

Remarks

Wrapper of MaaFramework.Binding.Interop.Native.MaaResource.MaaResourceCreate(MaaFramework.Binding.Interop.Native.MaaNotificationCallback,System.IntPtr).

Exceptions

ArgumentNullException
MaaJobStatusException

MaaResource(IEnumerable<string>)

Creates a MaaFramework.Binding.MaaResource instance.

public MaaResource(IEnumerable<string> paths)

Parameters

paths IEnumerable<string>

The paths of maa resource.

Remarks

Wrapper of MaaFramework.Binding.Interop.Native.MaaResource.MaaResourceCreate(MaaFramework.Binding.Interop.Native.MaaNotificationCallback,System.IntPtr).

Exceptions

ArgumentNullException
MaaJobStatusException

MaaResource(CheckStatusOption, IEnumerable<string>)

Creates a MaaFramework.Binding.MaaResource instance.

public MaaResource(CheckStatusOption check, IEnumerable<string> paths)

Parameters

check CheckStatusOption

Checks AppendPath(path).Wait() status if is MaaFramework.Binding.CheckStatusOption.ThrowIfNotSucceeded; otherwise, not checks.

paths IEnumerable<string>

The paths of maa resource.

Remarks

Wrapper of MaaFramework.Binding.Interop.Native.MaaResource.MaaResourceCreate(MaaFramework.Binding.Interop.Native.MaaNotificationCallback,System.IntPtr).

Exceptions

ArgumentNullException
MaaJobStatusException