Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.java > #8613

c'è anche in java una simile sintassi?

Path csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!nntpspool01.opticnetworks.net!aioe.org!.POSTED!not-for-mail
From "Vittorio" <scipionelafricano@tim.it>
Newsgroups it.comp.java
Subject c'è anche in java una simile sintassi?
Date Mon, 12 Oct 2015 23:12:25 +0200
Organization Aioe.org NNTP Server
Lines 20
Message-ID <mvh7nl$16a$1@speranza.aioe.org> (permalink)
NNTP-Posting-Host i1PbpcWCp5nxLvpab3q4ug.user.speranza.aioe.org
Mime-Version 1.0
Content-Type text/plain; format=flowed; charset="iso-8859-1"; reply-type=original
Content-Transfer-Encoding 8bit
X-Complaints-To abuse@aioe.org
X-MimeOLE Produced By Microsoft MimeOLE V16.4.3528.331
X-Notice Filtered by postfilter v. 0.8.2
X-Newsreader Microsoft Windows Live Mail 16.4.3528.331
Importance Normal
X-Priority 3
X-MSMail-Priority Normal
Xref csiph.com it.comp.java:8613

Show key headers only | View raw


E' codice C#  .

Serve per impostare  le due proprietà username\password  ; Notare che 
Credentials è una interfaccia implementata dalla classe NetworkCredential, 
ma tale interfaccia  non possiede le due proprietà username\password ( che 
sono possedute invece dalla classe NetworkCredential)   ,per cui per 
impostarle si usa il costrutto con le due graffe.


SmtpClient sc = new SmtpClient("hostpc",678);

           sc.Credentials = new System.Net.NetworkCredential()
           {
               UserName = "ffff",
               Password = "fhy"
           };


Ciao 

Back to it.comp.java | Previous | NextNext in thread | Find similar


Thread

c'è anche in java una simile sintassi? "Vittorio" <scipionelafricano@tim.it> - 2015-10-12 23:12 +0200
  c'è anche in java una simile sintassi? "Alessandro Carraro (JUG Padova)" <carraro.alessandro@gmail.com> - 2015-10-12 22:05 -0700
  Re: c'è anche in java una simile sintassi? "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-10-14 11:49 +0200
    Re: c'è anche in java una simile sintassi? "Vittorio" <scipionelafricano@tim.it> - 2015-10-14 12:17 +0200
      Re: c'è anche in java una simile sintassi? "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-10-14 13:19 +0200

csiph-web