Outlook Object

Welcome Forums General PowerShell Q&A Outlook Object

This topic contains 3 replies, has 3 voices, and was last updated by

 
Participant
4 years, 3 months ago.

  • Author
    Posts
  • #20140

    Participant
    Points: -16
    Rank: Member

    I have been creating a meeting invitation script. And I am running into two different options of creating the Outlook application object and I was wondering what the difference of the two would be.

    So the ones I am seeing are as follows:

    [Reflection.Assembly]::LoadWithPartialname("Microsoft.Office.Interop.Outlook")

    -and

    New-Object -comobject Outlook.application

    Now does one give me more functionality over the other and simply what are the main differences are the two questions I have at the moment.

  • #20180

    Keymaster
    Points: 1,811
    Helping HandTeam Member
    Rank: Community Hero

    No difference. Two different ways of doing the same thing.

  • #20210

    Participant
    Points: 527
    Helping Hand
    Rank: Major Contributor

    From my understanding, "LoadWithPartialName" is a deprecated method. http://msdn.microsoft.com/en-us/library/12xc5368(v=vs.110).aspx

    I would use the second just for readability and support.

  • #20212

    Participant
    Points: -16
    Rank: Member

    Thanks for the input guys!

The topic ‘Outlook Object’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort