A
Andrew Mueller
Hello all,
I am working on a project, converting code from VB 6.0 to C#. I have a
COM object (SDK.dll) referenced and am having some issues using it. I don't
think it is specific to the object as much as it is specific to how either
C# or the CLR allows the use of different parameters and variables... This
is just a guess. Anyway, here is the problem:
In VB:
Dim iDRS as iH_SDK.DataRecordset
set iDRS = ConnectedServer.Data.NewRecordset
With iDRS
.Criteria.FilterTagSet = True
.Criteria.FilterTag = fullTagName
End with
In C#
iH_SDK.DataRecordset iDRS = ConnectedServer.Data.NewRecordset();
iDRS.Criteria.FilterTagsSet = true;
iDRS.Criteria.FilterTag = fullTagName;
--> On the last line in the C# program, I get a compile error of:
Property, indexer, or event 'FilterTag' is not supported by the
language; try directly calling accessor methods
'IH_SDK._DataCrieteria.get_FilterTag()' or
'iH_SDK._DataCriteria.set_FilterTag(ref string)'
Any idea what I am doing wrong? I have tried a whole bunch of stuff without
a solution yet and I am at the end of my long rope.
Thanks in advance!!
Andrew Mueller
I am working on a project, converting code from VB 6.0 to C#. I have a
COM object (SDK.dll) referenced and am having some issues using it. I don't
think it is specific to the object as much as it is specific to how either
C# or the CLR allows the use of different parameters and variables... This
is just a guess. Anyway, here is the problem:
In VB:
Dim iDRS as iH_SDK.DataRecordset
set iDRS = ConnectedServer.Data.NewRecordset
With iDRS
.Criteria.FilterTagSet = True
.Criteria.FilterTag = fullTagName
End with
In C#
iH_SDK.DataRecordset iDRS = ConnectedServer.Data.NewRecordset();
iDRS.Criteria.FilterTagsSet = true;
iDRS.Criteria.FilterTag = fullTagName;
--> On the last line in the C# program, I get a compile error of:
Property, indexer, or event 'FilterTag' is not supported by the
language; try directly calling accessor methods
'IH_SDK._DataCrieteria.get_FilterTag()' or
'iH_SDK._DataCriteria.set_FilterTag(ref string)'
Any idea what I am doing wrong? I have tried a whole bunch of stuff without
a solution yet and I am at the end of my long rope.
Thanks in advance!!
Andrew Mueller