Advertisement
Guest User

Untitled

a guest
Dec 9th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. protected internal XmlElement(
  2. string prefix,
  3. string localName,
  4. string namespaceURI,
  5. XmlDocument doc
  6. )
  7.  
  8. $doc = new-object System.Xml.XmlDocument
  9. $e = New-Object System.Xml.XmlElement -ArgumentList "foo","bar","baz",$doc
  10. New-Object : A constructor was not found. Cannot find an appropriate constructor for type System.Xml.XmlElement.
  11. At line:1 char:6
  12. + $e = New-Object System.Xml.XmlElement -ArgumentList "foo","bar","baz",$doc
  13. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  14. + CategoryInfo : ObjectNotFound: (:) [New-Object], PSArgumentException
  15. + FullyQualifiedErrorId : CannotFindAppropriateCtor,Microsoft.PowerShell.Commands.NewObjectCommand
  16.  
  17. ([type]"System.Xml.XmlElement").GetConstructors()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement