public class SoundPlayer extends Component
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Media.SoundPlayer
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Windows.Extensions, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
|
static java.lang.String |
assemblyShortName
Assembly name: System.Windows.Extensions
|
static java.lang.String |
className
Qualified class name: System.Media.SoundPlayer
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
SoundPlayer()
Initializes a new instance by invoking the .NET constructor.
|
SoundPlayer(java.lang.Object instance)
Internal constructor.
|
SoundPlayer(Stream stream)
Initializes a new instance by invoking the .NET constructor.
|
SoundPlayer(java.lang.String soundLocation)
Initializes a new instance by invoking the .NET constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLoadCompleted(AsyncCompletedEventHandler handler)
Invokes the .NET member addLoadCompleted.
|
void |
addSoundLocationChanged(EventHandler handler)
Invokes the .NET member addSoundLocationChanged.
|
void |
addStreamChanged(EventHandler handler)
Invokes the .NET member addStreamChanged.
|
static SoundPlayer |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into SoundPlayer, a cast assert is made to check if types are compatible. |
boolean |
getIsLoadCompleted()
Gets the value of the .NET property IsLoadCompleted.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
int |
getLoadTimeout()
Gets the value of the .NET property LoadTimeout.
|
java.lang.String |
getSoundLocation()
Gets the value of the .NET property SoundLocation.
|
Stream |
getStream()
Gets the value of the .NET property Stream.
|
NetObject |
getTag()
Gets the value of the .NET property Tag.
|
void |
Load()
Invokes the .NET member Load.
|
void |
LoadAsync()
Invokes the .NET member LoadAsync.
|
void |
Play()
Invokes the .NET member Play.
|
void |
PlayLooping()
Invokes the .NET member PlayLooping.
|
void |
PlaySync()
Invokes the .NET member PlaySync.
|
void |
removeLoadCompleted(AsyncCompletedEventHandler handler)
Invokes the .NET member removeLoadCompleted.
|
void |
removeSoundLocationChanged(EventHandler handler)
Invokes the .NET member removeSoundLocationChanged.
|
void |
removeStreamChanged(EventHandler handler)
Invokes the .NET member removeStreamChanged.
|
void |
setIsLoadCompleted(boolean IsLoadCompleted)
Sets the value of the .NET property IsLoadCompleted.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
setLoadTimeout(int LoadTimeout)
Sets the value of the .NET property LoadTimeout.
|
void |
setSoundLocation(java.lang.String SoundLocation)
Sets the value of the .NET property SoundLocation.
|
void |
setStream(Stream Stream)
Sets the value of the .NET property Stream.
|
void |
setTag(NetObject Tag)
Sets the value of the .NET property Tag.
|
void |
Stop()
Invokes the .NET member Stop.
|
addDisposed, close, Dispose, getContainer, getSite, removeDisposed, setSiteGetLifetimeService, InitializeLifetimeServicepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public SoundPlayer()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
MissingMethodException,
TargetInvocationException,
WaitHandleCannotBeOpenedException,
OutOfMemoryException
java.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itWaitHandleCannotBeOpenedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic SoundPlayer(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic SoundPlayer(Stream stream) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, MissingMethodException, TargetInvocationException, PlatformNotSupportedException, WaitHandleCannotBeOpenedException
stream - the argument of type Streamjava.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itWaitHandleCannotBeOpenedException - if the .NET member raises itpublic SoundPlayer(java.lang.String soundLocation)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
MissingMethodException,
TargetInvocationException,
PlatformNotSupportedException,
WaitHandleCannotBeOpenedException,
ObjectDisposedException,
NullReferenceException,
ArgumentNullException,
AggregateException,
IndexOutOfRangeException,
FormatException,
CultureNotFoundException,
UnreachableException,
UriFormatException
soundLocation - the argument of type java.lang.Stringjava.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itWaitHandleCannotBeOpenedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itNullReferenceException - if the .NET member raises itArgumentNullException - if the .NET member raises itAggregateException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itUnreachableException - if the .NET member raises itUriFormatException - if the .NET member raises itpublic void addLoadCompleted(AsyncCompletedEventHandler handler) throws java.lang.Throwable
handler - the argument of type AsyncCompletedEventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void addSoundLocationChanged(EventHandler handler) throws java.lang.Throwable
handler - the argument of type EventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void addStreamChanged(EventHandler handler) throws java.lang.Throwable
handler - the argument of type EventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static SoundPlayer cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into SoundPlayer, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedSoundPlayer instancejava.lang.Throwable - in case of error during cast operationpublic boolean getIsLoadCompleted()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class Componentpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class Componentpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class Componentnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class Componentpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class Componentpublic int getLoadTimeout()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getSoundLocation()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic Stream getStream() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, CultureNotFoundException, NullReferenceException, OutOfMemoryException, ExternalException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, UriFormatException, UnreachableException
java.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itNullReferenceException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itExternalException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itUriFormatException - if the .NET member raises itUnreachableException - if the .NET member raises itpublic NetObject getTag() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Load()
throws java.lang.Throwable,
PlatformNotSupportedException,
NotSupportedException,
ArgumentException,
CultureNotFoundException,
NullReferenceException,
OutOfMemoryException,
ExternalException,
ArgumentNullException,
ArgumentOutOfRangeException,
InvalidOperationException,
UriFormatException,
UnreachableException,
ArrayTypeMismatchException,
FileNotFoundException,
ObjectDisposedException,
AbandonedMutexException,
AggregateException,
TimeoutException,
IOException
java.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itNullReferenceException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itExternalException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itUriFormatException - if the .NET member raises itUnreachableException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itFileNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itAbandonedMutexException - if the .NET member raises itAggregateException - if the .NET member raises itTimeoutException - if the .NET member raises itIOException - if the .NET member raises itpublic void LoadAsync()
throws java.lang.Throwable,
PlatformNotSupportedException,
NotSupportedException,
ArgumentException,
CultureNotFoundException,
NullReferenceException,
OutOfMemoryException,
ExternalException,
ArgumentNullException,
ArgumentOutOfRangeException,
InvalidOperationException,
UriFormatException,
UnreachableException,
ArrayTypeMismatchException,
FileNotFoundException,
IOException,
ObjectDisposedException
java.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itNullReferenceException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itExternalException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itUriFormatException - if the .NET member raises itUnreachableException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itFileNotFoundException - if the .NET member raises itIOException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic void Play()
throws java.lang.Throwable,
PlatformNotSupportedException,
NotSupportedException,
ArgumentException,
NullReferenceException,
OutOfMemoryException,
ExternalException,
ArgumentNullException,
InvalidOperationException,
CultureNotFoundException,
ArgumentOutOfRangeException,
UriFormatException,
ArrayTypeMismatchException,
ObjectDisposedException,
FileNotFoundException,
AbandonedMutexException,
AggregateException,
TimeoutException,
IOException
java.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itNullReferenceException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itExternalException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itUriFormatException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itObjectDisposedException - if the .NET member raises itFileNotFoundException - if the .NET member raises itAbandonedMutexException - if the .NET member raises itAggregateException - if the .NET member raises itTimeoutException - if the .NET member raises itIOException - if the .NET member raises itpublic void PlayLooping()
throws java.lang.Throwable,
PlatformNotSupportedException,
NotSupportedException,
ArgumentException,
NullReferenceException,
OutOfMemoryException,
ExternalException,
ArgumentNullException,
InvalidOperationException,
CultureNotFoundException,
ArgumentOutOfRangeException,
UriFormatException,
ArrayTypeMismatchException,
ObjectDisposedException,
FileNotFoundException,
AbandonedMutexException,
AggregateException,
TimeoutException,
IOException
java.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itNullReferenceException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itExternalException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itUriFormatException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itObjectDisposedException - if the .NET member raises itFileNotFoundException - if the .NET member raises itAbandonedMutexException - if the .NET member raises itAggregateException - if the .NET member raises itTimeoutException - if the .NET member raises itIOException - if the .NET member raises itpublic void PlaySync()
throws java.lang.Throwable,
PlatformNotSupportedException,
NotSupportedException,
ArgumentException,
NullReferenceException,
OutOfMemoryException,
ExternalException,
ArgumentNullException,
InvalidOperationException,
CultureNotFoundException,
ArgumentOutOfRangeException,
UriFormatException,
ArrayTypeMismatchException,
ObjectDisposedException,
FileNotFoundException,
AbandonedMutexException,
AggregateException,
TimeoutException,
IOException
java.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itNullReferenceException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itExternalException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itUriFormatException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itObjectDisposedException - if the .NET member raises itFileNotFoundException - if the .NET member raises itAbandonedMutexException - if the .NET member raises itAggregateException - if the .NET member raises itTimeoutException - if the .NET member raises itIOException - if the .NET member raises itpublic void removeLoadCompleted(AsyncCompletedEventHandler handler) throws java.lang.Throwable
handler - the argument of type AsyncCompletedEventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void removeSoundLocationChanged(EventHandler handler) throws java.lang.Throwable
handler - the argument of type EventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void removeStreamChanged(EventHandler handler) throws java.lang.Throwable
handler - the argument of type EventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setIsLoadCompleted(boolean IsLoadCompleted)
throws java.lang.Throwable
IsLoadCompleted - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class Componentinstance - the new underlying objectpublic void setLoadTimeout(int LoadTimeout)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
LoadTimeout - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic void setSoundLocation(java.lang.String SoundLocation)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
ObjectDisposedException,
NullReferenceException,
ArgumentNullException,
AggregateException,
IndexOutOfRangeException,
FormatException,
CultureNotFoundException,
UnreachableException,
OutOfMemoryException,
UriFormatException
SoundLocation - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itNullReferenceException - if the .NET member raises itArgumentNullException - if the .NET member raises itAggregateException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itUnreachableException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itUriFormatException - if the .NET member raises itpublic void setStream(Stream Stream) throws java.lang.Throwable, ObjectDisposedException, PlatformNotSupportedException, NullReferenceException, NotSupportedException, ArgumentNullException, ArgumentException, AggregateException
Stream - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRObjectDisposedException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNullReferenceException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itAggregateException - if the .NET member raises itpublic void setTag(NetObject Tag) throws java.lang.Throwable
Tag - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Stop()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLR