vb translation from c#

G

Guest

I am usually able to move between c# and vb without difficulty. However, I
can't get this translation. Can someone show me how you would right the
following lines of code in vb?

object[] operationIds = new object[] { 1 };

object[] result = (object[])clientContext.AccessCheck("Auditstring",
new object[1], operationIds, null, null, null, null,
null);

thanks
 
B

Bill McCarthy

Bruce Browning said:
I am usually able to move between c# and vb without difficulty. However, I
can't get this translation. Can someone show me how you would right the
following lines of code in vb?

object[] operationIds = new object[] { 1 };

Dim operationIds() as Object = New Object() { 1}

object[] result =
(object[])clientContext.AccessCheck("Auditstring",
new object[1], operationIds, null, null, null, null,
null);

Dim result() As Object = Ctype(clientContext.AccessCheck("Auditstring", new
object(1) {}, operationIds, nothing, nothing, nothing, nothing, nothing),
Object())
 
G

Guest

Thanks Bill. I appreciate your help.

Bill McCarthy said:
Bruce Browning said:
I am usually able to move between c# and vb without difficulty. However, I
can't get this translation. Can someone show me how you would right the
following lines of code in vb?

object[] operationIds = new object[] { 1 };

Dim operationIds() as Object = New Object() { 1}

object[] result =
(object[])clientContext.AccessCheck("Auditstring",
new object[1], operationIds, null, null, null, null,
null);

Dim result() As Object = Ctype(clientContext.AccessCheck("Auditstring", new
object(1) {}, operationIds, nothing, nothing, nothing, nothing, nothing),
Object())


 
R

rowe_newsgroups

I am usually able to move between c# and vb without difficulty. However, I
can't get this translation. Can someone show me how you would right the
following lines of code in vb?

object[] operationIds = new object[] { 1 };

object[] result = (object[])clientContext.AccessCheck("Auditstring",
new object[1], operationIds, null, null, null, null,
null);

thanks

This site, created by a few former and current posters here, should
help you out.

http://www.harding.edu/fmccown/vbnet_csharp_comparison.html

Thanks,

Seth Rowe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top