vb translation from c#

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?QnJ1Y2UgQnJvd25pbmc=?=

    #1

    vb translation from c#

    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("Au ditstring",
    new object[1], operationIds, null, null, null, null,
    null);

    thanks
  • Bill McCarthy

    #2
    Re: vb translation from c#


    "Bruce Browning" <Bruce Browning@discus sions.microsoft .comwrote in message
    news:8612ACFC-D096-4AB4-980B-34FE89FBE9BE@mi crosoft.com...
    >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("Au ditstring",
    new object[1], operationIds, null, null, null, null,
    null);
    >
    Dim result() As Object = Ctype(clientCon text.AccessChec k("Auditstring" , new
    object(1) {}, operationIds, nothing, nothing, nothing, nothing, nothing),
    Object())


    thanks

    Comment

    • =?Utf-8?B?QnJ1Y2UgQnJvd25pbmc=?=

      #3
      Re: vb translation from c#

      Thanks Bill. I appreciate your help.

      "Bill McCarthy" wrote:
      >
      "Bruce Browning" <Bruce Browning@discus sions.microsoft .comwrote in message
      news:8612ACFC-D096-4AB4-980B-34FE89FBE9BE@mi crosoft.com...
      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("Au ditstring",
      new object[1], operationIds, null, null, null, null,
      null);
      >
      Dim result() As Object = Ctype(clientCon text.AccessChec k("Auditstring" , new
      object(1) {}, operationIds, nothing, nothing, nothing, nothing, nothing),
      Object())
      >
      >
      >
      thanks
      >
      >

      Comment

      • rowe_newsgroups

        #4
        Re: vb translation from c#

        On Aug 7, 11:58 am, Bruce Browning <Bruce
        Brown...@discus sions.microsoft .comwrote:
        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("Au ditstring",
        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.



        Thanks,

        Seth Rowe

        Comment

        Working...