Moonware.Server.WCF
ConnectPlugin Method



SourceIndex
Name of the plugin.
List of Moonware.Common.SerializableEnum with the parameters. The default values can be retrieved using GetAvailablePlugins
Connects a new plugin or update existing plugin on a given video source.
Syntax
'Declaration
 
<OperationBehaviorAttribute()>
<PrincipalPermissionAttribute(Name="", 
   Role="Edit Settings", 
   Authenticated=True, 
   Action=SecurityAction.Demand, 
   Unrestricted=False)>
Public Function ConnectPlugin( _
   ByVal sourceIdx As Integer, _
   ByVal pluginName As String, _
   ByVal parameters As SerializableParams _
) As Integer
'Usage
 
Dim instance As MoonwareServerWCF
Dim sourceIdx As Integer
Dim pluginName As String
Dim parameters As SerializableParams
Dim value As Integer
 
value = instance.ConnectPlugin(sourceIdx, pluginName, parameters)
[OperationBehaviorAttribute()]
[PrincipalPermissionAttribute(Name="", 
   Role="Edit Settings", 
   Authenticated=true, 
   Action=SecurityAction.Demand, 
   Unrestricted=false)]
public int ConnectPlugin( 
   int sourceIdx,
   string pluginName,
   SerializableParams parameters
)
[OperationBehaviorAttribute()]
[PrincipalPermissionAttribute(Name="", 
   Role="Edit Settings", 
   Authenticated=true, 
   Action=SecurityAction.Demand, 
   Unrestricted=false)]
public:
int ConnectPlugin( 
   int sourceIdx,
   String^ pluginName,
   SerializableParams^ parameters
) 

Parameters

sourceIdx
SourceIndex
pluginName
Name of the plugin.
parameters
List of Moonware.Common.SerializableEnum with the parameters. The default values can be retrieved using GetAvailablePlugins

Return Value

System.Int32, -1 in case of failure, >= 0 in case of success.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

MoonwareServerWCF Class
MoonwareServerWCF Members

Send Feedback