DANSrv Reference
ValidateItems(String[],Int32,Int32[]) Method
See Also  Send Feedback
NSPluginNet4 Assembly > NSPlugin Namespace > AppPlugin Class > ValidateItems Method : ValidateItems(String[],Int32,Int32[]) Method

FullItemId
[in] string array with the names of the items to be validated
reason
ValidateReason enumerator indicating why the method is called
err
HRESULTS array with success/error code for each requested item

Glossary Item Box

DEPRECIATED! This overload is is only called if the overload with the client handle argument is not defined. This method is called when the client accesses items that do not yet exist in the server's cache. OPC DA V2 clients typically first call AddItems() or ValidateItems(). OPC DA V3 client may access items directly using the ItemIO read/write functions. In XML DA the calls directly specify the item ID.
When this method is called depends on the ValidateMode set in the GetServerParameters() implementation.
If ValidateMode 'ALWAYS' is configured then the method is called for each client call, even if the item exists in the server cache. The access can be denied for a specific client by returning an error code in err[] for such items. This module can: - add the item to the servers real address space and return success. For each item to be added the callback method 'AddItem' has to be called. - return error for all or some items

Syntax

Visual Basic (Usage)Copy Code
Dim instance As AppPlugin
Dim FullItemId() As String
Dim reason As Integer
Dim err As Integer()
Dim value As Integer
 
value = instance.ValidateItems(FullItemId, reason, err)
C# 
public new int ValidateItems( 
   string[] FullItemId,
   int reason,
   out int[] err
)

Parameters

FullItemId
[in] string array with the names of the items to be validated
reason
ValidateReason enumerator indicating why the method is called
err
HRESULTS array with success/error code for each requested item

Return Value

the number of successfully added items and/or accessible items.the number of successfully added items repse3ctively accessible items.

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

© 2002-2017 Copyright Advosol Inc. All Rights Reserved.