Moonware.Server.WCF
ConnectCameraJson Method



Source Index (-1 for new source, existing Index in order to update an existing source).
Name of the class (VideoProvider plugin name. Ex: "VideoSource.Netcam").
List of Moonware.Common.SerializableEnum sent as string with the parameters. The default values can be retrieved using GetAvailablePlugins
Same as ConnectCamera (Json friendly).
Syntax
'Declaration
 
<OperationBehaviorAttribute()>
<PrincipalPermissionAttribute(Name="", 
   Role="Edit Settings", 
   Authenticated=True, 
   Action=SecurityAction.Demand, 
   Unrestricted=False)>
Public Function ConnectCameraJson( _
   ByVal sourceIdx As Integer, _
   ByVal providerName As String, _
   ByVal parameters As String _
) As Integer
'Usage
 
Dim instance As MoonwareServerWCF
Dim sourceIdx As Integer
Dim providerName As String
Dim parameters As String
Dim value As Integer
 
value = instance.ConnectCameraJson(sourceIdx, providerName, parameters)
[OperationBehaviorAttribute()]
[PrincipalPermissionAttribute(Name="", 
   Role="Edit Settings", 
   Authenticated=true, 
   Action=SecurityAction.Demand, 
   Unrestricted=false)]
public int ConnectCameraJson( 
   int sourceIdx,
   string providerName,
   string parameters
)
[OperationBehaviorAttribute()]
[PrincipalPermissionAttribute(Name="", 
   Role="Edit Settings", 
   Authenticated=true, 
   Action=SecurityAction.Demand, 
   Unrestricted=false)]
public:
int ConnectCameraJson( 
   int sourceIdx,
   String^ providerName,
   String^ parameters
) 

Parameters

sourceIdx
Source Index (-1 for new source, existing Index in order to update an existing source).
providerName
Name of the class (VideoProvider plugin name. Ex: "VideoSource.Netcam").
parameters
List of Moonware.Common.SerializableEnum sent as string with the parameters. The default values can be retrieved using GetAvailablePlugins

Return Value

System.Int32, -1 in case of failure, new source index 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