Brocade Virtual ADX XML API Programmer’s Guide (Supporting Uživatelský manuál Strana 874

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 878
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 873
864 Brocade Virtual ADX XML API Programmer’s Guide
53-1003248-01
Example: Unbinding a real server from a VIP
B
// Name: OpenRCloseLog
//
// Description: This function will be called to open or close the log file.
//
// Parameters: bOpen - true/false
//
/////////////////////////////////////////////////////////////////////////////
public bool OpenRCloseLog(bool bOpen)
{
string sLogPath = "";
//get the full location of the assembly with DaoTests in it
string sfullPath =
System.Reflection.Assembly.GetAssembly(typeof(Utils)).Location;
//get the folder that's in
string sDirectory = Path.GetDirectoryName(sfullPath);
sLogPath = String.Format("{0}\\ConfigureSLB.txt", sDirectory);
//check whether m_StreamWriter object is null before opening the log
file
if (bOpen == true && m_StreamWriter == null)
{
m_FileStream = new FileStream(sLogPath, FileMode.OpenOrCreate |
FileMode.Append, FileAccess.Write);
m_StreamWriter = new StreamWriter(m_FileStream);
if (m_StreamWriter == null)
{
return false;
}
return true;
}
else
{
//Check the validity of the streamwriter before calling close
command
if (m_StreamWriter != null)
{
//Close the log file
m_StreamWriter.Close();
m_FileStream.Close();
m_FileStream = null;
m_StreamWriter = null;
}
}
return true;
}
/////////////////////////////////////////////////////////////////////////////
// Name: WL
//
// Description: This function to write the log message to the file.
//
// Parameters: sLogMessage - the log message to be written to the log file.
//
/////////////////////////////////////////////////////////////////////////////
public void WL(string sLogMessage, string sLogMessage1)
{
if (m_StreamWriter == null)
{
//Do not write the log if the log file is not opened
Zobrazit stránku 873
1 2 ... 869 870 871 872 873 874 875 876 877 878

Komentáře k této Příručce

Žádné komentáře

JBL Control MicroPlus background music ceiling speaker manuales

Manuales del propietario y guías del usuario para Micrófonos JBL Control MicroPlus background music ceiling speaker.
Ofrecemos 1 manuales en pdf JBL Control MicroPlus background music ceiling speaker para descargar gratis por tipos de documentos: Manual de usuario






Más productos y manuales para Micrófonos JBL

Modelos Tipo de documento
HT PS300 Manual de usuario   JBL HT PS300 User Manual, 8 paginas
N26II Manual de usuario   JBL N26II User Manual, 4 paginas
L228C Manual de usuario   JBL L228C User Manual, 1 paginas
NORTHRIDGE EC35 Manual de usuario   JBL NORTHRIDGE EC35 User Manual, 1 paginas
W10GTi Manual de usuario   JBL W10GTi User Manual, 8 paginas
HTI55 Manual de usuario   JBL HTI55 User Manual, 1 paginas
TLX271P Manual de usuario   JBL TLX271P User Manual, 6 paginas
P26T Manual de usuario   JBL P26T User Manual, 12 paginas
SVA1600 Manual de usuario   JBL SVA1600 User Manual, 2 paginas
Sound Power Series SP215-9 Manual de usuario   JBL Sound Power Series SP215-9 User Manual, 4 paginas
gto6506c Manual de usuario   JBL gto6506c User Manual, 4 paginas
Loudspeaker ARC1000 Manual de usuario   JBL Loudspeaker ARC1000 User Manual, 7 paginas
IS8C Manual de usuario   JBL IS8C User Manual, 8 paginas
SURROUND CINEMA SCS200.7 Manual de usuario   JBL SURROUND CINEMA SCS200.7 User Manual, 12 paginas
Northridge E Series E150P Manual de usuario   JBL Northridge E Series E150P User Manual [en] , 8 paginas
MRX 500 Manual de usuario   JBL MRX 500 User Manual, 11 paginas
Northridge E Series E20 Manual de usuario   JBL Northridge E Series E20 User Manual, 1 paginas
Cinema Surround Sound 3310 Manual de usuario   JBL Cinema Surround Sound 3310 User Manual, 2 paginas
V R X 9 1 5 S Manual de usuario   JBL V R X 9 1 5 S User Manual, 3 paginas
HT4H Manual de usuario   JBL HT4H User Manual, 2 paginas